JSFiddle - React, Tailwind, and code Playground
by kiokotzu
HTML
<img src="http://dl.dropboxusercontent.com/u/105046436/tw.png" />
<br>
<div class="twitter-bird"></div>
CSS
.twitter-bird {
height: 38px;
width: 37.5px;
background-image: url("http://dl.dropboxusercontent.com/u/105046436/tw.png");
}
.twitter-bird:hover {
-webkit-animation: fly .4s steps(3) infinite;
-moz-animation: fly .4s steps(3) infinite;
-ms-animation: fly .4s steps(3) infinite;
-o-animation: fly .4s steps(3) infinite;
animation: fly .4s steps(3) infinite;
}
@-webkit-keyframes fly {
from { background-position: 0px; }
to { background-position: -112.5px; }
}
@-moz-keyframes fly {
from { background-position: 0px; }
to { background-position: -112.5px; }
}
@-ms-keyframes fly {
from { background-position: 0px; }
to { background-position: -112.5px; }
}
@-o-keyframes fly {
from { background-position: 0px; }
to { background-position: -112.5px; }
}
@keyframes fly {
from { background-position: 0px; }
to { background-position: -112.5px; }
}