<html>
<head>
<meta charset="utf-8">
<title>实例
</title>
</head>
<body>
<style type="text/css">.demo_box{
border:1px solid #3DA5DC;
background:#a4dcf9;
height:100px;
width:200px;
text-align:center;
color:#fff;
}
.animation_duration{
left:10px;
top:100px;
position:absolute;
animation:0.5s ease 1 forwards;
animation-duration:2s;
animation-name:demo;
animation:0.5s ease 1 forwards;
animation-name:demo;
animation-duration:2s;
}
@-webkit-keyframes demo{
0%{
left:10px;
}
100%{
left:400px;
}
}
</style>
<div class="demo_box animation_duration">我一共运行了2秒钟
</div>
</body>
</html>