Currently experimenting with CSS3 Animations to create a Panoramic view using only CSS and no JavaScript.
I have managed to create a somewhat working demo: http://www.example.com/images/panoramic/
The concept is simple: when the user hovers over the black rectangle on the edges, the central background moves.
Source code: www.example.com/images/panoramic/sources-pano.zip
However, I am facing an issue where when the mouse leaves the :hover state, the background resets to its initial position. I can add a transition to smooth this out, but my goal is to pause the animation in its current visual state when the mouse leaves, rather than resetting it.
After spending a whole day trying to figure this out, I'm unsure if this is possible with CSS3 Animations!
The animation-fill-mode: forwards; does not seem to work, nor does triggering the animation-play-state: paused on the initial state. This may be due to starting the animation from a different DOM element than the one being animated...
Can anyone provide assistance or confirm that this is an impossible task?
Thank you in advance