I have two images. One that is normal, and another that is more colourised. I want to have this image displaying on top of the other and having a “glowing” effect where it switches between transparent and opaque every second or so. I also need to stop this effect when the user presses a particular button. How would I go about doing this with jQuery or Javascript?
Share
jsBin demo
html:
jquery:
Just position the two images absolute:
I used css3 box shadow, but you could use a glowed .png image instead.