CSS:
.horizon {
position: absolute;
top: 380px;
width: 1800px;
height: 50px;
background: url(images/road.png) repeat-x;
-webkit-animation-name: prop-600;
-webkit-animation-duration: 20s;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes prop-600 {
0% {
-webkit-transform: translateX(0px);
}
100% {
-webkit-transform: translateX(-1000px);
}
}
The animation is currently stopping at 100% and restarting. I want the image to continuously move from left to right without any pauses.
Here is the fiddle:http://jsfiddle.net/rVAtz/
I used a square element in the fiddle instead of an image for demonstration purposes.
If anyone can assist me in achieving this effect using JavaScript or jQuery, I would appreciate it. Thank you in advance.