
欢迎关注路条编程的公众号,通过学习应用视觉设计这一系列文章,你将会逐步掌握页面版式、色彩、图形、动画和布局相关的基础知识。
|关键字 |含义|| --- | --- || ease | 逐渐变慢| linear | 匀速过渡| ease-in | 由慢到快| ease-out | 由快到慢| ease-in-out| 由慢到快再到慢| step-start | 一步到位,相当于steps(1, start)| step-end | 延迟到位, 相当于steps(1, end)
<style type="text/css">.circle-anim {animation-name: animationBox;animation-duration: 5s;animation-fill-mode: forwards;animation-iteration-count: infinite;animation-timing-function: step-start ;}.circle-anim2 {animation-name: animationBox2;animation-duration: 5s;animation-fill-mode: forwards;animation-iteration-count: infinite;animation-timing-function: ease-out;}@keyframes animationBox {0% {background-color: #FF790E;top: 0px;}50% {background-color: #90c840;top: 220px;opacity: 0.1;}100% {background-color: #09A7A1;top: 0px;}}@keyframes animationBox2 {0% {background-color: #FF790E;top: 0px;}50% {background-color: #90c840;top: 220px;opacity: 0.1;}100% {background-color: #09A7A1;top: 0px;}}</style>
<li><img src="../images/balloon6.jpg" alt="hot air balloon" /><p>气球图片 6</p><div class="div-skew"><div class="circle-div circle-anim"></div><div class="circle-div circle-anim2"></div></div></li>

重要提示:示例效果预览,请访问 https://www.icoderoad.com , 完整代码查看及下载,请访问 https://github.com/icoderoad/demo。
今天就讲到这里,如果有问题需要咨询,大家可以直接留言或扫下方二维码关注公众号。也可以添加 happyzjp 微信受邀加入学习社群,我们会尽力为你解答。



作者:路条编程(转载请获本公众号授权,并注明作者与出处)
文章转载自路条编程,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




