这篇文章给大家介绍的内容是关于css3中animation属性实现箭头向右滚动渐隐的代码,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
这是一个右箭头的小图标。
keyframes 创建一个css3动画用 animation 调用 并用延迟动画的办法 做出匀速滚动的效果。
直接贴上html代码,复制即可运行。
arrow-right .container { width: 1000px;margin: 0 auto; } @keyframes move { 0% {left: 0%; opacity: 0; } 70% { left: 70%; opacity: 1 } 100% {left: 100%;opacity: 0;} } .move{-webkit-animation-name:move;animation-name:move;position:relative;margin-left:-16px;} .ar-animated{-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;font-style:inherit;-webkit-animation-timing-function:linear;animation-timing-function:linear;} .ar-delay-1s{animation-delay:0.1s;} .ar-delay-2s{animation-delay:0.2s;} .ar-delay-3s{animation-delay:0.3s;} .ar-delay-4s{animation-delay:0.4s;} .ar-delay-5s{animation-delay:0.5s;} .ar-delay-6s{animation-delay:0.6s;} .ar-delay-7s{animation-delay:0.7s;} .ar-delay-8s{animation-delay:0.8s;} .ar-delay-9s{animation-delay:0.9s;} .ar-delay-10s{animation-delay:0.10s;} <!-- >>>>>> --> <!-- -->
相关推荐:
css3的动画(animation)属性的详解(附代码)
立即学习“前端免费学习笔记(深入)”;
怎么用css制作箭头?(不同方向箭头代码示例)
以上就是css3中animation属性实现箭头向右滚动渐隐的代码的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1611106.html
微信扫一扫
支付宝扫一扫