showing results for - "play css animation with js onhover"
Silvana
29 Oct 2020
1const button = document.getElementById("btn");
2const disp_text = document.getElementById('disp_text');
3
4button.onmouseover = function(){
5 disp_text.style.animation = "fadein 1s linear";
6 disp_text.innerText = "Next";
7}
8