I am trying to create a webpage that uses a moving div that moves slowly to the left. There is also another div that moves over it to the right, which gives a 3D effect (but this does not apply to the point).
What I'm trying to do right now is a 7000px div that moves slowly to the left (animating the “right” CSS property using jQuery animate()), but after everything moves, the animation ends.
Is there a way to make a div infinite width, or at least make it go back to the beginning (just like a grocery store tracking thing) so that the animation never stops?
I think this requires several separate divs, each time it reaches its end, it returns, but I cannot figure out how to do this, since I am a novice jQuery developer.
source
share