I am using a sprite along with CSS3 animation in an attempt to make a rollover. It works somewhat in CODA 2 however when i test in Mozilla, Chrome, Safari and Opera the animation does not occur.
/*linkedin contact button*/
button{text-indent:-99999px; border: none; }
a.linkedin,a.linkedin:hover{display: block; cursor: pointer; background: url(../img/linked.png) no-repeat; width: 128px; height: 128px}
a.linkedin{background-position: -0 -0}
a.linkedin:hover{animation:first 1000s; -moz-animation:first 1000s; -webkit-animation:first 1000s; -o-animation:first 1000s;}
@keyframes first{from {background-position: -140px -0;} to {background-position: -0px -0;}}
@-moz-keyframes first{from {background-position: -140px -0;} to {background-position: -0 -0;}}
@-webkit-keyframes first{from {background-position: -140px -0;} to {background-position: -0 -0;}}
@-o-keyframes first{from {background-position: -140px -0;} to {background-position: -0 -0;}}
*a.linkedin:hover{background-position: -140px -0/9}/*for ie*/
Why don’t you just use the CSS3 transitions? If all you do is change the background position creating keyframes is kind of overdoing it. See this jsfiddle:
http://jsfiddle.net/RfbhD/3/
All the CSS you need: