主页 > 知识库 > 简单的css文字动画效果

简单的css文字动画效果

热门标签:威力最大的电销机器人 400电话唐山办理 旅游地图标注线路 漯河外呼调研线路 电销专用外呼线路 电话机器人钥匙扣 广西房产智能外呼系统推荐 电销外呼系统是违法的吗 地图标注位置怎么弄图

实现效果

实现代码

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文字动画效果的详细内容,更多关于css文字动画效果的资料请关注脚本之家其它相关文章!

标签:焦作 试驾邀约 湘西 铜陵 绥化 湖北 无锡 钦州

巨人网络通讯声明:本文标题《简单的css文字动画效果》,本文关键词  简单,的,css,文字,动画,效果,;如发现本文内容存在版权问题,烦请提供相关信息告之我们,我们将及时沟通与处理。本站内容系统采集于网络,涉及言论、版权与本站无关。
  • 相关文章
  • 下面列出与本文章《简单的css文字动画效果》相关的同类信息!
  • 本页收集关于简单的css文字动画效果的相关信息资讯供网民参考!
  • 企业400电话

    智能AI客服机器人
    15000

    在线订购

    合计11份范本:公司章程+合伙协议+出资协议+合作协议+股权转让协议+增资扩股协议+股权激励+股东会决议+董事会决议

    推荐文章