CSS animate 学习
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
.container {
width:100px;
height: 100px;
border:1px solid gray;
animation: myfirst 2s infinite linear;
position: absolute;
}
@keyframes myfirst
{
0% {background: red; left:0px;}
50% {background: yellow; left:1000px;}
100% {background: red;left:0px;}
}
</style>
</head>
<body>
<div class="container" >
你好
</div>
<script>
</script>
</body>
</html>