Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@swingley
Created January 14, 2016 20:07
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/e69ac85d5ca63b327d4c to your computer and use it in GitHub Desktop.
Save swingley/e69ac85d5ca63b327d4c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
div {
position: absolute;
left: 50%;
margin-left: -25px;
margin-top: -25px;
top: 50%;
}
line {
stroke: #111;
}
.rotate {
animation: rotating 2s ease-in-out infinite;
transform-origin: 25px 25px;
}
@keyframes rotating {
from { transform: rotate(0deg) }
to { transform: rotate(360deg) }
}
</style>
</head>
<body>
<div>
<svg width="50" height="50">
<line class="rotate" x1="10" y1="40" x2="40" y2="10"/>
</svg>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment