CSS transitions can add a nice effect to links. Here are some quick example snippets for your copy/paste enjoyment.

transition syntax

CSS3 transition property is widely supported, with the exception of Webkit and Opera Mini. Fortunately, it’s possible to apply transitions to those browsers as well using custom vendor prefixes. Before the examples, here is the basic syntax for CSS transition:

Vendor prefixes are used in the following examples to provide support for older browsers. All prefixes except -webkit- may be removed if you’re only supporting current versions (i.e., progressive enhancement).