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% {
background-size: 100% auto;
}
50% {
background-size: 50% auto;
}
}
@keyframes imagebulger {
0%,
100% {
background-size: 100% auto;
}
50% {
background-size: 50% auto;
}
}
div.hotspot {
width: 200px;
height: 100px;
background-image: url("http://dummyimage.com/200x100/000/fff");
background-repeat: no-repeat;
-webkit-animation: imagebulger 2s infinite !important;
-moz-animation: imagebulger 2s infinite !important;
-o-animation: imagebulger 2s infinite !important;
animation: imagebulger 2s infinite !important;
}