Last active
October 26, 2019 22:17
-
-
Save zlwaterfield/0df5e1efd7e4ebc8eb9fa01247e0b1eb to your computer and use it in GitHub Desktop.
Blog post snippet - https://medium.com/gofaros/dynamic-and-responsive-svg-3de87f757e0d
This file contains hidden or 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
.timeline { | |
position: absolute; | |
width: 100%; | |
height: auto; | |
top: 64px; | |
left: -5px; | |
stroke-width: 3px; | |
stroke-linecap: round; | |
stroke-linejoin: round; | |
stroke-dasharray: 4250; | |
stroke-dashoffset: 4250; | |
@include xs-sm { | |
top: 84px; | |
stroke-dasharray: 4450; | |
stroke-dashoffset: 4450; | |
}; | |
@include gt-sm { | |
top: 52px; | |
stroke-dasharray: 4500; | |
stroke-dashoffset: 4500; | |
}; | |
path { | |
fill: transparent; | |
stroke: $purple; | |
vector-effect: non-scaling-stroke; | |
transition: stroke $transition-duration $cubic-bezier; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment