CSS3 Globe Animation.
HTML
<div class="globe-container">
<div class="globe"></div>
</div>
CSS
body{
background:#eee;
}
.globe-container
{
margin:120px auto;
width:92px;
height:92px;
border:1px solid transparent;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
overflow:hidden;
background:url(http://fengel.com/testing/earthMap_92h.png) top left no-repeat;
-webkit-animation: rotate 10s infinite linear;
-moz-animation: rotate 10s infinite linear;
-ms-animation: rotate 10s infinite linear;
-moz-box-shadow: 0px 5px 15px #888;
-webkit-box-shadow: 0px 5px 15px #888;
box-shadow: 0px 5px 15px #888;
}
.globe
{
position:absolute;
width:92px;
height:92px;
background:url(http://fengel.com/testing/shadow_highlight.png) top left no-repeat
}
@-webkit-keyframes rotate{
0% {
background-position:0px 0px;
}
100% {
background-position:-160px 0px;
}
}
@-ms-keyframes rotate{
0% {
background-position:0px 0px;
}
100% {
background-position:-160px 0px;
}
}
@-moz-keyframes rotate{
0% {
background-position:0px 0px;
}
100% {
background-position:-160px 0px;
}
}