CSS3 Spinning Animation
HTML
<div class="hotspot">
</div>
CSS
@-o-keyframes imagebulger {
0%,
100% {
background-size: 100% auto;
}
50% {
background-size: 50% auto;
}
}
@-moz-keyframes imagebulger {
0%,
100% {
background-size: 100% auto;
}
50% {
background-size: 50% auto;
}
}
@-webkit-keyframes imagebulger {
0%,
100% {
-webkit-background-size: 100%;
}
50% {
-webkit-background-size: 50%;
}
}
@keyframes imagebulger {
0%,
100% {
-webkit-background-size: 100%;
}
50% {
-webkit-background-size: 50%;
}
}
div.hotspot {
width: 200px;
height: 100px;
background-image: url("http://dummyimage.com/200x100/000/fff");
background-repeat: no-repeat;
-webkit-animation: imagebulger 2s infinite ;
-moz-animation: imagebulger 2s infinite ;
-o-animation: imagebulger 2s infinite ;
animation: imagebulger 2s infinite ;
}