CSS :hover 'shine effect' (ver 1)

Uses CSS multiple backgrounds, background-size, gradients, and transitions to create a 'shine effect' when hovering over the icon

by necolas

HTML

<div class="container">
    <a href="http://twitter.com/necolas" class="icon">Twitter</a>
</div>

<p>Shine effect using semantic HTML and CSS3 backgrounds by <a href="http://nicolasgallagher.com">Nicolas Gallagher</a>.</p>
<p>Inspired by a demo from <a href="http://anton.trollback.se/shine-effect/">Anton Trollback</a>.</p>
<p>Icon by <a href="http://www.nouveller.com/general/free-social-media-bookmark-icon-pack-the-ever-growing-icon-set/">Nouveller</a>.</p>

CSS

html,
body {padding:0; margin:0; line-height: 1;}

/* Links */
a {color:#858e98}
a:hover {color:#555}

body {
    background:...

JavaScript

/*
 * NOTES:
 *
 * CSS experiment using multiple backgrounds, background-size,
 * and transitions.
 *
 * While the HTML is "clean", the code required to create the
 * effect is going to be MUCH more verbose than Anton's
 * original once you start adding multiple icons.
 *
 * A better alternative is a combination of pseudo-elements
 * and background gradients + transitions.
 *
 * See: http://jsfiddle.net/necolas/KbNq7/
 */