Answers for "Play css animation with JS onhover"

0

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";
}
Posted by: Guest on May-13-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language