I'm currently experimenting with CSS3 animations and trying to create a panoramic view with CSS only (no javascript at all).
Until now, I get a kind of working demo: http://www.yagraph.org/images/panoramic/
The idea is simple: if the user hangs a black rectangle in the borders, the central background moves.
source code: www.yagraph.org/images/panoramic/sources-pano.zip
But I can not finish it, because when the mouse leaves the state: hover, the background reset is in its original position. I can put the transition in the initial state to smooth it out, but I want to pause the animation in its calculated (or visual) state when the mouse leaves or if you prefer not to reset it to its original state.
I am writing here now because after a whole day of break I canβt even conclude if this is really possible with CSS3 animations ...!
Animation-fill mode: forward; It does not seem to work without starting the animation mode: suspended in the initial state. I suppose this is because I am running the animation from a different DOM element than the animated ...
Can you help me or assure me that this is a futile attempt?
Thank you very much in advance
source share