javascript animation css code example
Example 1: javascript css animation
Personally https://animejs.com/
Example 2: start animation with javascript
element.addEventListener("click", function(e){
element.classList.remove("anim");
setTimeout(() => element.classList.add("anim"), 0);
}, false);