本文摘自PHP中文网,作者藏色散人,侵删。
css animation-play-state属性规定动画正在运行还是暂停。animation-play-state: paused;表示动画已暂停,animation-play-state: running;表示动画正在播放。css animation-play-state属性怎么用?
作用:animation-play-state 属性规定动画正在运行还是暂停。
语法:
1 |
|
说明:paused 规定动画已暂停。running 规定动画正在播放。
注释:您可以在 JavaScript 中使用该属性,这样就能在播放过程中暂停动画。
css animation-play-state属性使用示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
效果:
以上就是css animation-play-state属性怎么用的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
html5 border属性怎么设置?html5 table中的border属性介绍
更多相关阅读请进入《css》频道 >>

Vue.js 设计与实现 基于Vue.js 3 深入解析Vue.js 设计细节
本书对 Vue.js 3 技术细节的分析非常可靠,对于需要深入理解 Vue.js 3 的用户会有很大的帮助。——尤雨溪,Vue.js作者