Skip to navigation
How to highlight a DOM element with a fade in and then fade out effect.
10.03.23
.fademe { background-color:white; animation-name: fade1; animation-duration: 0.6s; } @keyframes fade1 { 0% {background-color: white;} 50% {background-color: #ff7777;} 100% {background-color: white;} } let obj = document.querySelector("#apicurl em"); obj.classList.remove("fademe"); setTimeout(function(){ obj.classList.add("fademe")}, 10);
https://www.w3schools.com/css/tryit.asp?filename=trycss3_animation2
Reply
Anonymous
Information Epoch 1760443020
Live free or die.
Home
Notebook
Contact us