I have an issue with a CSS3 animation. I have a class who is helping me to animate an SVG, the name of this class is 'animateCircle'.
I want the animation to trigger when I hover over the "input".
I have create the following code:
jQuery('form.newsletter input[type="submit"]').hover(function() {
jQuery('svg').addClass('animateCircle')
})
The problem is that the animation suddenly stops if I remove my cursor from the "input" element.
Ideally, I would like the animation to end (it lasts 2 seconds) and then the class (which triggers the animation) to delete itself. I have tried to put a setTimeOut but the problem remains the same: the animation is abruptly removed when the cursor is no longer on the "input".
if anyone has any idea, that would be greatly appreciated!