Created
March 24, 2019 09:18
-
-
Save bedekelly/564da782700f0dc05da70f0ae288ff18 to your computer and use it in GitHub Desktop.
Animate Drawing a Circle
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
.ring.two { | |
stroke-dasharray: calc(2 * 3.1415 * 58); | |
stroke-dashoffset: calc(2 * 3.1415 * 58); | |
stroke-dashoffset: -calc(2 * 3.1415 * 58); | |
transform: rotate(-90deg); | |
transition: stroke-dashoffset linear 0.5s; | |
} | |
.button:hover .ring.two { | |
stroke-dashoffset: 0; | |
transition: stroke-dashoffset linear 0.5s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment