I’m afraid that the only way to solve this is with a bit of javascript, you must add the animation as a class and then remove it when the animation finishes.
$(".box").bind("webkitAnimationEnd mozAnimationEnd animationend", function(){
$(this).removeClass("animated")
})
$(".box").hover(function(){
$(this).addClass("animated");
})
http://jsfiddle.net/u7vXT/
Related Contents:
- How to have multiple CSS transitions on an element?
- CSS Animations with delay for each child element
- CSS3 animation with gradients [duplicate]
- CSS3 Continuous Rotate Animation (Just like a loading sundial)
- How to create a pulse effect using -webkit-animation – outward rings
- How To Sync CSS Animations Across Multiple Elements?
- CSS3 Rotate Animation
- How to reverse an animation on mouse out after hover
- iPhone WebKit CSS animations cause flicker
- Can you control GIF animation with Javascript?
- SVG animation is not working on IE11
- How do I re-trigger a WebKit CSS animation via JavaScript?
- How to build simple jQuery image slider with sliding or opacity effect?
- SwiftUI: Broken explicit animations in NavigationView?
- How to animate handwriting text on the web page using SVG?
- How can I transition width of content with width: auto?
- CSS transform origin issue on svg sub-element
- How to have css3 animation to loop forever
- How to pause and resume CSS3 animation using JavaScript?
- how to do a simple scaling animation and why isn’t this working?
- CSS Auto hide elements after 5 seconds
- CSS endless rotation animation
- CSS3-Animate elements if visible in viewport (Page Scroll)
- Deprecated SMIL SVG animation replaced with CSS or Web animations effects (hover, click)
- CSS ONLY Animate Draw Circle with border-radius and transparent background
- CSS transition auto height not working [duplicate]
- Performance of CSS Transitions vs. JS animation packages
- How do you detect when CSS animations start and end with JavaScript?
- SwiftUI Line Graph Animation using Vector Arithmetic
- Simple CSS Animation Loop – Fading In & Out “Loading” Text
- Javafx : How can I produce an animation with 3D path?
- matplotlib save animation in gif error
- visibility:hidden vs display:none vs opacity:0
- how to get a div to randomly move around a page (using jQuery or CSS)
- CSS display none and opacity animation with keyframes not working
- In JavaFX how do I move a sprite across the screen?
- Flexbox: center horizontally and vertically
- :after and :before CSS pseudo elements hack for Internet Explorer 7
- Gradient text color
- avoid page break inside row of table
- How to compare colors in JavaScript?
- How do I install a custom font on an HTML site
- How can I generate the opposite color according to current color?
- font-face with wrong MIME type in Chrome
- Should image size be defined in the img tag height/width attributes or in CSS? [duplicate]
- How do I change the font-size of an element within ?
- Understanding grid negative values
- Sass negative variable value?
- repeat css background image a set number of times
- Rotating image. Animation list or animated rotate? (Android)