html:

<div class="content">
<div class="content__container">
<p class="content__container__text">
酒之
</p>

<ul class="content__container__list">
<li class="content__container__list__item">历史</li>
<li class="content__container__list__item">常识</li>
<li class="content__container__list__item">文化</li>
<li class="content__container__list__item">工艺</li>
<li class="content__container__list__item">典故</li>
</ul>
</div>
</div>

css:

body {
width: 100%;
height: 100%;
position: fixed;
background-color: #34495e;
}

.content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 160px;
overflow: hidden;
font-size: 35px;
line-height: 40px;
color: #ecf0f1;
}

.content__container {
font-weight: 600;
overflow: hidden;
height: 40px;
padding: 0 40px;
}

.content__container:after,
.content__container:before {
position: absolute;
top: 0;
color: #16a085;
font-size: 42px;
line-height: 40px;

animation-name: opacity;
animation-duration: 2s;
animation-iteration-count: infinite;
}

.content__container__text {
display: inline;
float: left;
margin: 0;
}

.content__container__list {
margin-top: 0;
padding-left: 110px;
text-align: left;
list-style: none;
animation-name: change;
animation-duration: 10s;
animation-iteration-count: infinite;
}

.content__container__list__item {
line-height: 40px;
margin: 0;
}

@keyframes opacity {

0%,
100% {
opacity: 0;
}

50% {
opacity: 1;
}
}

@keyframes change {

0%,

100% {
transform: translate3d(0, 0, 0);
}

25%{
transform: translate3d(0, -25%, 0);
}

50% {
transform: translate3d(0, -50%, 0);
}

75% {
transform: translate3d(0, -75%, 0);
}

}

最新文章

  1. Oracle 表和表数据恢复
  2. js的Array的map和sort实现方法
  3. swift学习记录之代理
  4. JS中的prototype///////////////////////////z
  5. Java异步IO/NIO
  6. php提高效率
  7. 外网SSH访问内网LINUX的N种方法
  8. Scrapy爬虫实例——校花网
  9. 干货:MySQL 索引原理及慢查询优化
  10. 关于ORACLE的SQL语句拼接、替换、截取、排序,联表等...~持续汇总~
  11. 汉诺塔I &amp;&amp; II
  12. 设置js的ctx
  13. JQuery编写自己的插件(七)
  14. 5 款最新的 jQuery 图片裁剪插件
  15. LeetCode DB : Delete Duplicate Emails
  16. Linux命令之stty
  17. 网易 2016 实习研发project师 3道 编程题
  18. soj2012.King(有向图+蛋疼得一逼)
  19. Set集合之TreeSet类
  20. ant design pro (十三)advanced 错误处理

热门文章

  1. SpringMVC 环境搭建
  2. easyUI中datagrid展示对象下属性以及显示多个子属性(Day_37)
  3. [LeetCode] 231. 2 的幂
  4. 在gin框架中使用JWT
  5. CVPR2020论文解析:实例分割算法
  6. 机器学习PAL数据可视化
  7. TOF与结构光技术分析
  8. TensorFlow反向传播算法实现
  9. 初具雏形的UL标准侧重于自主车辆的安全性
  10. Xshell6会话管理器无意中关闭,在哪里打开