Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js replay animation

function reset_animation() {
  var el = document.getElementById('animated');
  el.style.animation = 'none';
  el.offsetHeight; /* trigger reflow */
  el.style.animation = null; 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #replay #animation
ADD COMMENT
Topic
Name
3+1 =