-
-
Save swingley/e69ac85d5ca63b327d4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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