Skip to content

Instantly share code, notes, and snippets.

@swingley
Created January 14, 2016 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swingley/71f16d26827ec1089825 to your computer and use it in GitHub Desktop.
Save swingley/71f16d26827ec1089825 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<style>
div {
position: absolute;
left: 50%;
margin-left: -25px;
margin-top: -25px;
top: 50%;
}
circle {
fill: none;
stroke: #111;
animation: loading 1.5s ease-in-out infinite;
animation-direction: alternate;
stroke-dasharray: 157.07963267948966;
stroke-dashoffset: 157.07963267948966;
}
@keyframes loading {
from { stroke-dashoffset: 157.07963267948966; }
to {stroke-dashoffset: 0; }
}
</style>
</head>
<body>
<div>
<svg width="50" height="50">
<g transform="translate(0,50) rotate(-90)">
<circle cx="25" cy="25" r="24"/>
</g>
</svg>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment