Created
June 20, 2019 12:07
-
-
Save juliendargelos/26082084086d6d0f733986cffb1ee9d8 to your computer and use it in GitHub Desktop.
Basic animated svg spinner
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
<svg width="64px" height="64px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"> | |
<rect x="0" y="0" width="100" height="100" fill="none"></rect> | |
<circle cx="50" cy="50" r="40" stroke="none" fill="none" stroke-width="10" stroke-linecap="round"></circle> | |
<circle cx="50" cy="50" r="40" stroke="#000" fill="none" stroke-width="6" stroke-linecap="round"> | |
<animate attributeName="stroke-dashoffset" dur="1.5s" repeatCount="indefinite" from="0" to="502"></animate> | |
<animate attributeName="stroke-dasharray" dur="1.5s" repeatCount="indefinite" values="150.6 100.4;1 250;150.6 100.4"></animate> | |
</circle> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment