Without using any other jquery plugin I’m looking to continuously flash/change a div’s border color.
So it should start with white then after 1 sec change to orange, then repeat.
Without using any other jquery plugin I’m looking to continuously flash/change a div’s border
Share
Css:
Html:
JavaScript:
To stop flashing:
Solution without flash:
It looks a bit hackish with the rgb comparison. It might be neater to have a flag that you toggle back and forth, perhaps a data property: