webkit loop animation code example
Example 1: animation shorthand css
animation: name time func delay iteration dir fill play;
animation: none 0s ease 0s 1 normal none running;
animation-name: none;
animation-duration: 0s;
animation-timing-function: ease;
animation-delay: 0s;
animation-iteration-count: 1;
animation-direction: normal;
animation-fill-mode: none;
animation-play-state: running;
Example 2: css keyframes animation
//css keyframes
#image{
width: 100px;
height: 100px;
background-color: red;
position: relative;
animation: monFrame 5s linear 2s infinite alternate;
}
@keyframes monFrame {
0% {left:0px; top:0px;}
25% {left:500px; top:0px;}
50% {left:500px; top:500px;}
75% {left:0px; top:500px;}
100% {left:0px; top:0px;}
}
Example 3: css animation infinite loop
div {
animation-iteration-count: number|infinite|initial|inherit;
}