1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > CSS---动态向下的循环箭头动画效果

CSS---动态向下的循环箭头动画效果

时间:2019-11-23 18:16:52

相关推荐

CSS---动态向下的循环箭头动画效果

介绍

在移动端的页面中,经常有翻页的提示效果,经常使用向下的箭头动画来提示;一般效果如下所示:

使用到的图片

使用到的图片,就是一个向下的箭头;这里可以下载我的图片使用;

或者也可以使用<>括号,然后通过旋转角度,使其向下;也可以;

代码

<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title></head><style>.look-more {position: fixed;bottom: 15%;width: 100%;display: flex;flex-direction: column;align-items: center;justify-content: center;}.look-more img:first-child{animation-delay: -1s; -webkit-animation-delay: -1s;}.look-more img:nth-child(2){animation-delay: -0.5s; -webkit-animation-delay: -0.5s;}.look-more img:last-child{animation-delay: 0s; -webkit-animation-delay: 0s;}.look-more img {stroke: #fff; fill: transparent;stroke-width: 2px;animation: downMove 2s infinite;-webkit-animation: downMove 2s infinite;}/* down */@keyframes downMove{0% {opacity: 0; }40% {opacity: 1; }80% {opacity: 0; }100% {opacity: 0; }}.look-more img {width: 12px;display: inline-block;}</style><body><div class="look-more"><img src="./xiangxia.png" alt=""><img src="./xiangxia.png" alt=""><img src="./xiangxia.png" alt=""></div></body></html>

至此,就可以实现一个循环滚动的向下的箭头动画;

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。