亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

簡單的css文字動畫效果

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

實現(xiàn)效果

實現(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文字動畫效果的詳細內(nèi)容,更多關(guān)于css文字動畫效果的資料請關(guān)注腳本之家其它相關(guān)文章!

相關(guān)文章

最新評論