x
1
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<style>
6
div {
7
width: 100px;
8
height: 100px;
9
background: red;
10
position: relative;
11
animation-name: mymove;
12
animation-duration: 5s;
13
14
/* Safari and Chrome */
15
animation-name: mymove;
16
animation-duration: 5s;
17
}
18
19
@keyframes mymove {
20
from {
21
left: 0px;
22
}
23
to {
24
left: 200px;