Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Play css animation with JS onhover

const button = document.getElementById("btn");
const disp_text = document.getElementById('disp_text');

button.onmouseover = function(){
 disp_text.style.animation = "fadein 1s linear";
 disp_text.innerText = "Next";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Play #css #animation #JS #onhover
ADD COMMENT
Topic
Name
4+3 =