Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

start animation with javascript

element.addEventListener("click", function(e){
  element.classList.remove("anim");
  setTimeout(() => element.classList.add("anim"), 0);
}, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #start #animation #javascript
ADD COMMENT
Topic
Name
1+9 =