An Interest In:
Web News this Week
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
July 15, 2022 07:43 pm GMT
Original Link: https://css-tricks.com/how-stroke-dasharray-patterns-work/
How stroke-dasharray Patterns Work
Say you have a line in SVG:
<svg<line x1="0" y1="30" x2="500" y2="30" stroke-color="#f8a100" /</svg
You can use thestroke-dasharray
property in CSS to make dashes:
line { stroke-dasharray: 5;}
That 5
value is a relative unit based …
How stroke-dasharray Patterns Work originally published on CSS-Tricks. You should get the newsletter.
Original Link: https://css-tricks.com/how-stroke-dasharray-patterns-work/
Share this article:
Tweet
View Full Article