酷屏-CSS3小动画 “向上/向下” 流转箭头

2288
0

橙子 小试身手Lv3

发表于2021-10-22 10:57

楼主
向上箭头:(效果见附件zip)
html源代码:
<div class='defelement' id='ball-light11' droppable='true' wid='elem' style='background-repeat: no-repeat; width: 31px; height: 29px; left: 2175px; background-color: transparent; background-image: url("vfs/root/products/ebi/sys/picture/sjx/箭头2.png"); border: none; top: 1213px;'>
</div>
CSS样式:
#ball-light11{
    animation: fadeup11 2s infinite;
}
@keyframes fadeup11{
        0%{
                transform: translateY(0);
                opacity: 0;
        }
        30%{
                opacity: 1;
        }
        70%{
                opacity: 1;
        }
        100%{
                transform: translateY(-70px);
                opacity: 0;
        }
}
向下箭头:
html源代码:
<div class='defelement' id='ball-light' droppable='true' wid='elem' style='background-repeat: no-repeat; background-color: transparent; border: none; width: 72px; height: 66px; background-image: url("vfs/root/products/ebi/sys/picture/sjx/箭头-down.png"); left: 2771px; top: 1717px;'>
</div>
CSS样式:
#ball-light {
     animation: p-arrow2 3s infinite ;
    animation-timing-function: linear;
    -webkit-animation-delay:2s;
}
@keyframes p-arrow2 {
                0%{
                transform: translateY(0);
                opacity: 0;
        }
        20%{
                opacity: 1;
        }
        80%{
                opacity: 1;
        }
        100%{
                transform: translateY(60px);
                opacity: 0;
        }
}


20211022_105436.zip (143.89 KB, 下载次数: )

最近看过此主题的会员

zhuhc

邢强

槐序

一一

jxchencong

wyd1014

2021112209

POLARIS

zhaoyouhong

jiangqiao

0个回答

只看楼主

登录后可回答问题,请登录注册

快速回复 返回顶部 返回列表

小时

全天响应

分钟

快速处理问题

工程师强势助力

明星产品
解决方案
联系合作

400咨询:400-0011-866

技术支持QQ:400-0011-866(工作日9:00-18:00)

产品建议邮箱yixin@esensoft.com

关注我们

扫TA学习更多干货

一对一专家交流

版权所有© 2006-2024 北京亿信华辰软件有限责任公司 京ICP备07017321号 京公网安备11010802016281号