Animation pictures with the removal, when going beyond the browser window
Hello.
Can you please tell how to do the animation then car runs on background. Background has widht: 100% of browser window. When car come to the end of browser window (or background) it must disappear but only after crossing browser window (or background)
There is a background image, there are other pictures that move on its background.
I did the animation itself with animate(), but I can not figure out how to:
1) remove the image when you crossing out of the browser (my window expands). Overflow: hidden not help me.
2) how to make a cyclical movement? Picture comes to the end of the window, disappearing beyond, and then reappears after a short delay.