Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 15, 2022 07:43 pm GMT

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-dasharrayproperty 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:    Share on Facebook
View Full Article

CSS Tricks

A Web Design Community curated by Chris Coyier

More About this Source Visit CSS Tricks