1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > css animation-play-state属性的用法

css animation-play-state属性的用法

时间:2020-02-16 11:32:57

相关推荐

css animation-play-state属性的用法

web前端|前端问答

css animation-play-state

web前端-前端问答

css animation-play-state属性规定动画正在运行还是暂停。animation-play-state: paused;表示动画已暂停,animation-play-state: running;表示动画正在播放。

ios 五子棋源码,vscode编程实例,ubuntu能直接关机吗,tomcat登录时长,让sqlite数据清空,插件统计网站源码程序,去哪里学习前端框架,爬虫加湿管,php采集图片,seo rankings,xcms网站管理系统下载,js 禁止网页缩放,论坛单页模板,帝国cms百度小程序apilzw

运维网站源码,ubuntu 各版本内核,tomcat7默认线程池,pyspider 3爬虫教程,PHP语言之基本语法答案,兴城seo优化lzw

css animation-play-state属性怎么用?

聊天室源码,ubuntu外接网卡重启,tomcat访问共享目录,爬虫英文原文,php轮训支付通道,闽侯一般seo销售价格lzw

作用:animation-play-state 属性规定动画正在运行还是暂停。

语法:

animation-play-state: paused|running;

说明:paused 规定动画已暂停。running 规定动画正在播放。

注释:您可以在 JavaScript 中使用该属性,这样就能在播放过程中暂停动画。

css animation-play-state属性使用示例

div{width:100px;height:100px;background:red;position:relative;animation:mymove 5s;animation-play-state:paused;/* Safari and Chrome */-webkit-animation:mymove 5s;-webkit-animation-play-state:paused;}@keyframes mymove{from {left:0px;}to {left:200px;}}@-webkit-keyframes mymove /* Safari and Chrome */{from {left:0px;}to {left:200px;}}

注释:Internet Explorer 9 以及更早的版本不支持 animation-play-state 属性。

效果:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。