1//css code
2#leftToRight{
3 animation: run ease 3s;
4 -webkit-animation: run ease 3s;
5 -moz-animation: run ease 3s;
6 -o-animation: run ease 3s;
7 -ms-animation: run ease 3s;
8}
9
10@keyframes run {
11 0% { margin-left: -98%;}
12 100%{ margin-left: 0%;}
13}
14
15@-moz-keyframes run {
16 0% { margin-left: -98%;}
17 100%{ margin-left: 0%;}
18}
19
20@-webkit-keyframes run {
21 0% { margin-left: -98%;}
22 100%{ margin-left: 0%;}
23}
24
25@-o-keyframes run {
26 0% { margin-left: -98%;}
27 100%{ margin-left: 0%;}
28}
29
30@-ms-keyframes run {
31 0% { margin-left: -98%;}
32 100%{ margin-left: 0%;}
33}
34
35//html code
36<div id="leftToRight"></div>