Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<html><!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <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> animation-play-state属性不兼容 Internet Explorer 9以及更早版本的浏览器.</p> <div></div> </body> </html>