I’m trying to highlight a div that wraps a contact form so the user knows where to go to contact. my link will be something like this
<a href="#form" class="contacthighlight">Contact Us</a>
Going with a class since this will be used on the site in two places.
right now the current background for #form is #f5f5f5 so what I want to do is Flash a random color like #ff0000 and slowly fade it out back to #f5f5f5
demo on dabblet.com
Target pseudo-class applied to element which you are scrolled to.
Add this to your css:
CSS:
HTML markup:
PS:
Accordingly to caniuse.com CSS properties: animation and keyframes is needed vendor prefixes such this:
PPS: dabblet using prefix free JS library to paste all necessary prefixes. Later without this library you can see all you need prefix syntax on css3please