Skip to content

Instantly share code, notes, and snippets.

@larscwallin
Created September 18, 2012 13:22
Show Gist options
  • Save larscwallin/3743065 to your computer and use it in GitHub Desktop.
Save larscwallin/3743065 to your computer and use it in GitHub Desktop.
Spinning clock
<html>
<header>
<style type="text/css">
/* ==========================================================
* SMW Loader
* =========================================================*/
.loader{
color: #555;
font-family: sans-serif;
font-size: 3em;
text-align: center;
-webkit-border-radius: 50%;
border-radius: 50%;
border: 5px solid #555;
width:100px;
height:100px;
position:relative;
-webkit-animation: rotateit 1.3s linear infinite;
-moz-animation: rotateit 1.3s linear infinite;
animation: rotateit 1.3s linear infinite;
}
@-webkit-keyframes rotateit {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes rotateit {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
}
}
@keyframes rotateit {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
</style>
</header>
<body>
<div class="loader">I</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment