Thank you to #anonim3 who just bought 2 of our #NFTs, your appreciation means a lot to us as builders. We also will process 1 NFT gift to you when you are willing to include your Twitter profile link🤩 #eCash $XEC #nftcollector #NFTDrop #BlockchainSimplicity #NFT pic.twitter.com/iD1wItNbKd
— Gaexe (@gaexe_) January 18, 2025
Hi guys, is anyone still confused about why the old methods like using the blink tag or the CSS attribute text-decoration: blink; don't work?
Well, on this occasion I will try to explain why and how to solve it.
Do not use this element < blink > as it is deprecated and is a bad design practice.
Although it may still work in some browsers (a small percentage), its use is not recommended as it can be removed at any time. Try to avoid it.
SOLUTION
JQuery
setInterval(function(){
$("#divtoBlink").toggleClass("backgroundRed");
},100)
HTML
<div id="divtoBlink" >asdasd</div>
CSS
.backgroundRed{
background: red;
}
RESULT
We can hand over this task to jQuery, besides being more customizable, we can also set the rhythm or interval or pause, for example.
The principle is like that, now just adjust it to your taste and needs!, happy working!