有没有办法做到这一点没有JavaScript或我必须使用JS从对象追加/删除类? 你们能向我展示一些现场实例吗? 现在我有一些作品只在对象的悬停:CSS动画,点击启动和停止无限动画
.clicker:hover + .circle {
-webkit-animation: rotor 1.5s linear 0s infinite normal;
-mox-animation: rotor 1.5s linear 0s infinite normal;
-o-animation: rotor 1.5s linear 0s infinite normal;
animation: rotor 1.5s linear 0s infinite normal;
}
.paused{
-webkit-animation-play-state:paused;
-moz-animation-play-state:paused;
-o-animation-play-state:paused;
animation-play-state:paused;
}
有一个在CSS –
没有点击操作,你必须使用JavaScript或jQuery的。 –
你可以告诉我怎么做? –