Skip to content

Instantly share code, notes, and snippets.

@swingley
Last active January 14, 2016 20:08
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/4a2505e4d92b86be3466 to your computer and use it in GitHub Desktop.
Save swingley/4a2505e4d92b86be3466 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%;
}
.move {
animation: spinning 1.5s ease-in-out infinite;
}
@keyframes spinning {
from { transform: rotate(0deg) }
to { transform: rotate(360deg) }
}
</style>
</head>
<body>
<div>
<svg width="50" height="50">
<g transform="translate(25,25) rotate(-45)">
<path class="move" d="M0,-25A25,25 0 0,1 25,0L20,0A20,20 0 0,0 0,-20Z" style="fill: rgb(85, 85, 85);"></path>
</g>
</svg>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment