html---css3 动画
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>css3动画(runoob.com)</title>
<style>
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:myfirst 5s linear infinite; /* 调用动画模块 设置动画时间 匀速 无限循环 */
margin-top:5px;
}
@keyframes myfirst /* 动画关键字@keyframes 动画名myfirst */
{
0% {background:red; left:0px; top:0px;}
100% {background:red; left:200px; top:0px;}//向右移动200px(距左边距20px)
}
</style>
</head>
<body>
<p>css3动画</p>
<div></div>
</body>
</html>