【发布时间】:2019-10-22 21:55:19
【问题描述】:
我希望箭头首先在 1.5 秒内淡入我的网站,然后在 3 秒后我希望它做一点反弹运动以指示滚动运动。我想每 3 秒重复一次弹跳动画,但只淡入一次(当我重新加载页面时)。
我现在的代码:
arrow {
position: absolute;
width: 100px;
top: 85vh;
animation: arrowInn 1.5s ease-in forwards, arrowBounce 1s 2s ease-in;
}
@keyframes arrowInn{
from{
opacity: 0;
}
to{
opacity: 100%;
}
}
@keyframes arrowBounce {
0% { bottom: 0px; }
50% { bottom: 10px; }
100% { bottom: 0px; }
}
【问题讨论】:
-
您能否详细说明您面临的问题。如果您能为它提供一个工作小提琴会很有帮助。
标签: html css css-animations