简体   繁体   English

暂停并更改CSS3动画的当前帧吗?

[英]Pause and change current frame of CSS3 animation?

It's possible to change current frame of CSS3 animation after pause it (using jQuery or Vanilla JS)? 是否可以在暂停CSS3动画后更改当前帧(使用jQuery或Vanilla JS)? How can I do that? 我怎样才能做到这一点?

More specifically, I'm thinking about slidebar which I can change current frame... 更具体地说,我正在考虑可以更改当前框架的滑杆...

Šime Vidas write a nice post on Link But there is still problem with CSS3 on old IE. ŠimeVidas在Link上写了一篇不错的文章,但是旧IE上的CSS3仍然存在问题。 And working fiddle : http://jsfiddle.net/simevidas/TnGhH/2/ 和工作提琴: http : //jsfiddle.net/simevidas/TnGhH/2/

.pause{
     -webkit-animation-play-state:paused;
    -moz-animation-play-state:paused;
    -o-animation-play-state:paused; 
    animation-play-state:paused;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM