animation
英 [ˌænɪˈmeɪʃn] 美 [ˌænəˈmeʃən]
n.生气,活泼;动画片制作,动画片摄制;[影视]动画片
复数: animations
play
英 [pleɪ] 美 [pleɪ]
n.游戏;比赛;戏剧;赌博
vt.& vi.玩;演奏;演出;参加比赛
vt.扮演;担任,充当…的角色;演出;装扮
vi.玩耍,游戏;[游戏] 参加游戏;赌博;闹着玩
第三人称单数: plays 现在分词: playing 过去式: played 过去分词: played
state
英 [steɪt] 美 [stet]
n.国家;州;状况,情况;资格
vt.规定;陈述,声明
adj.国家的;国务的,公务的;正式的
第三人称单数: states 复数: states 现在分词: stating 过去式: stated 过去分词: stated
css animation-play-state属性 语法
animation-play-state属性怎么用?
animation-play-state 属性规定动画正在运行还是暂停。animation-play-state: paused;表示动画已暂停,animation-play-state: running;表示动画正在播放。
作用:animation-play-state 属性规定动画正在运行还是暂停。
语法:animation-play-state: paused|running;
说明:paused 规定动画已暂停。running 规定动画正在播放。
注释:您可以在 JavaScript 中使用该属性,这样就能在播放过程中暂停动画。
css animation-play-state属性 示例
<!DOCTYPE html>
<html>
<head>
<style>
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;}
}
</style>
</head>
<body>
<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-play-state 属性。</p>
<div></div>
</body>
</html>运行实例 »
点击 "运行实例" 按钮查看在线实例