animation
英[ˌænɪˈmeɪʃn] 美[ˌænəˈmeʃən]
n. Angry, lively; cartoon production, cartoon shooting; [film and television] animation
Plural: animations
play
英[pleɪ] 美[pleɪ]
n.Game; competition; drama; gambling
vt.& vi. play; perform; perform; participate in competition
vt. play; act as, act as the role of...; perform; dress up
vi.play, game ;[Game] participate in games; gamble; have fun
Third person singular: plays Present participle: playing Past tense: played Past participle: played
state
UK[steɪt] 美[stet]
n.Country; state; situation, situation; qualification
vt. Regulation; statement, statement
adj. National; state affairs, official affairs; formal
Third person singular: states Plural: states Present participle: stating Past tense: stated Past participle: stated
css3 animation-play-state attribute syntax
Function:The animation-play-state attribute specifies whether the animation is running or paused.
Syntax: animation-play-state: paused|running;
##Description: paused specifies that the animation has been paused. running specifies that the animation is playing.
Note: You can use this attribute in JavaScript to pause the animation during playback.
css3 animation-play-state attribute example
<!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>
Run instance »
Click the "Run instance" button to view the online instance