最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

簡單的css文字動(dòng)畫效果

  發(fā)布時(shí)間:2021-04-06 16:47:06   作者:Nooray Yemon   我要評(píng)論
這篇文章主要介紹了css文字動(dòng)畫效果如何實(shí)現(xiàn),幫助大家更好的理解和學(xué)習(xí)使用css,感興趣的朋友可以了解下

實(shí)現(xiàn)效果

實(shí)現(xiàn)代碼

html

<div id=container>
  Welcome 
  <div id=flip>
    <div><div>jb51</div></div>
    <div><div>腳本之家</div></div>
    <div><div>歡迎訪問</div></div>
  </div>
  
</div>

<p>a css3 animation demo</p>

css

@import url('https://fonts.googleapis.com/css?family=Roboto:700');

body {
  margin:0px;
  font-family:'Roboto';
  text-align:center;
}

#container {
  color:#999;
  text-transform: uppercase;
  font-size:36px;
  font-weight:bold;
  padding-top:200px;  
  position:fixed;
  width:100%;
  bottom:45%;
  display:block;
}

#flip {
  height:50px;
  overflow:hidden;
}

#flip > div > div {
  color:#fff;
  padding:4px 12px;
  height:45px;
  margin-bottom:45px;
  display:inline-block;
}

#flip div:first-child {
  animation: show 5s linear infinite;
}

#flip div div {
  background:#42c58a;
}
#flip div:first-child div {
  background:#4ec7f3;
}
#flip div:last-child div {
  background:#DC143C;
}

@keyframes show {
  0% {margin-top:-270px;}
  5% {margin-top:-180px;}
  33% {margin-top:-180px;}
  38% {margin-top:-90px;}
  66% {margin-top:-90px;}
  71% {margin-top:0px;}
  99.99% {margin-top:0px;}
  100% {margin-top:-270px;}
}

p {
  position:fixed;
  width:100%;
  bottom:30px;
  font-size:12px;
  color:#999;
  margin-top:200px;
}

以上就是簡單的css文字動(dòng)畫效果的詳細(xì)內(nèi)容,更多關(guān)于css文字動(dòng)畫效果的資料請(qǐng)關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評(píng)論

徐州市| 武穴市| 江城| 双鸭山市| 巴塘县| 民和| 涟源市| 蓝山县| 观塘区| 轮台县| 蓝田县| 楚雄市| 京山县| 登封市| 嘉义县| 苍山县| 新丰县| 龙游县| 舞阳县| 营山县| 秭归县| 保康县| 安丘市| 余姚市| 成都市| 德格县| 绩溪县| 成武县| 峡江县| 雅安市| 三江| 康平县| 汾阳市| 汨罗市| 嘉祥县| 万年县| 宜阳县| 剑河县| 临颍县| 武陟县| 宜黄县|