I am trying to animate a logo with spritesheet ans it is working pretty well. The code is like
#logo {
background: url('../img/logo.png');
height: 142px;
width: 426px;
}
#logo:hover{
-webkit-animation: logoAnim .2s steps(19) forwards;
}
@-webkit-keyframes logoAnim {
100% { background-position: -8094px 0; }
}
So the image is animating on mouse hover. Now I am clueless how to reverse the animation on mouse out. Can someone help me pls