保持动画播放,直到在CSS的UNDOVER上完成
因此,我有一个制作动画的代码块:
.c:hover{
animation: rotate 1s ease;
}
@keyframes rotate {
from {
transform: rotate(0deg);
} to {
transform: rotate(360deg);
}
}
基本上,我希望动画即使在undover
之后继续播放,直到结束
才能提供帮助?
So i have this block of code that makes an animation:
.c:hover{
animation: rotate 1s ease;
}
@keyframes rotate {
from {
transform: rotate(0deg);
} to {
transform: rotate(360deg);
}
}
Basically i want the animation to keep playing even after unhover
until it ends
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
我发现了解决方案,我使用JavaScript在时间过去后删除动画。
I figured out the solution, I used JavaScript to remove the animation after the time has passed.