Created
April 6, 2018 07:35
-
-
Save hjelmeir/dd4da6cba1be9e4721ae6b34cc07544a to your computer and use it in GitHub Desktop.
Using stroke dash and offset to animate a svg line
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
polyline.animate-line { | |
stroke-dasharray: 1000; | |
stroke-dashoffset: 1000; | |
animation: dash 5s linear forwards; | |
} | |
@keyframes dash { | |
to { | |
stroke-dashoffset: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment