Download Transition Background Color Css3
Gif. Css transitions are being introduced right now in css level 3 but have already been added as an extension to webkit. This time, the background and text color changes on hover, so we can target both of these properties with our transition.
Changing Background Color While Scrolling Youtube from i.ytimg.com
As pointed out by gerald in the comments, if you put the transition on the a, instead of on a:hover it will fade back to the original color when your mouse. It's a common practice to apply css to a page that styles elements such that they are consistent across all browsers. How do i fix that?
Adding transition properties allows most of those changes to occur gradually, for a more vibrant, fluid interface.
It's a common practice to apply css to a page that styles elements such that they are consistent across all browsers. Css transitions are actually relatively straight forward to add to existing hover functionality, and give your site that extra polish for browsers that support css3. Css transitions offer the easiest way to animate an interface. To find out more about css3.