Skip to content

Instantly share code, notes, and snippets.

@tjoskar
Created March 22, 2012 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tjoskar/2163985 to your computer and use it in GitHub Desktop.
Save tjoskar/2163985 to your computer and use it in GitHub Desktop.
HTML5: Loading circle
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Demo</title>
<style type='text/css'>
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
#loading {
border: 1px solid #000;
border-right: 0;
border-bottom: 0;
-webkit-border-radius: 100px;
height: 100px;
width: 100px;
margin: 100px;
-webkit-transition: all 0.5s ease-in;
-webkit-animation-name: rotate;
-webkit-animation-duration: 1.0s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
</style>
</head>
<body>
<div id="loading"></div>
</body>
</html>
@vtellier
Copy link

Good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment