TAG
CSS
JavaScript
Result
Run
License
<button type="button" id="btn-start">Rollover me</button>
#btn-start { width: 100px; transition: 1s 1s; } #btn-start:hover { background: #FFFF00; }
window.addEventListener("load", function() { const elBtn = document.querySelector("#btn-start"); elBtn.addEventListener("transitionend", function(e) { e.currentTarget.textContent = "End"; }); });
Console
expand_less
License
License
by DevDic
Close