Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

stroke-dash gap

Public visualization

stroke-dash gap

0 stars0🌍 Public
Zzoniyac
Last edited Apr 23, 2020
Created on Apr 22, 2020
Forked from stroke-dash type

This example shows how adjusting the gap value in an SVG stroke-dasharray changes the visual rhythm of a line, progressing from wide, distinct gaps to a nearly solid stroke. Using React for rendering, it draws five horizontal paths within an SVG group, each with a fixed dash length of 5 and gap lengths that shrink from 20 down to 1. The code applies the stroke-dasharray attribute directly to each path element, demonstrating the effect with black strokes on a white background.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed