【发布时间】:2017-09-18 13:21:08
【问题描述】:
【问题讨论】:
-
我正在寻找悬停时停止的效果,我试过这个,但它太快了 &:hover{ 动画:暂停;有什么方法可以帮上大忙吗谢谢
标签: css animation sass hover transition
【问题讨论】:
标签: css animation sass hover transition
你可以试试这个悬浮:
.svg:hover .leon {
-webkit-animation-play-state: paused; /* Safari 4.0 - 8.0 */
animation-play-state: paused;
cursor: pointer;
}
所有人:
.svg:hover .leon,
.svg:hover .right-movment, .svg:hover .left-movment, .svg:hover .shaddow {
-webkit-animation-play-state: paused; /* Safari 4.0 - 8.0 */
animation-play-state: paused;
cursor: pointer;
}
【讨论】:
只需为您的 svg 悬停添加动画暂停
.svg:hover .shaddow,
.svg:hover .right-movment,
.svg:hover .left-movment,
.svg:hover .leon
{
-webkit-animation-play-state: paused;
-moz-animation-play-state: paused;
-o-animation-play-state: paused;
animation-play-state: paused;
}
【讨论】:
.leon:hover {
animation: none;
}
可能就是你要找的。p>
【讨论】: