You would need JS to add a class on mousenter to start the animation and then when the mouse leaves the area remove the class but wait for animation-end first.
Animation should almost always be user controlled or very short in duration . Images that continually animate can cause the rest of the page to be more difficult, or for users with very high levels of distractibility, totally inaccessible.
WCAG 2.0 Success Criterion 2.2.2 (Level A) requires that automatically moving, blinking, or scrolling content that lasts longer than 5 seconds can be paused, stopped, or hidden by the user.
Do you have the scripts in the right place (e.g. at the bottom of the html)? Are you using compatible version of jquery etc?
Your fiddle isn’t working for me anyway as it just infinitely carries on after you have hovered. I think the problem is that as you have the animation value as infinite then there never is an animation end as such. I think you need aninationiteration instead to stop after an iteration.
Here’s a codepen that seems to work but probably needs a JS guru to do properly
(modern browsers only i.e. Not IE11)
What seemed like a simple question at the start is indeed quite complex.