Dashed Strokes with SVG stroke-dasharray
Using `stroke-dasharray` to break an SVG stroke into a repeating pattern of dashes and gaps, the foundation of the line-drawing animation technique.
2 posts
Posts tagged stroke-dasharray
SVG Essentials: Mastering the Path Element
Understand SVG paths, curves, and commandsA complete guide to the SVG path element — path commands, coordinates, bézier curves, arcs, compound paths and fill-rule, pathLength-based line-draw animation, CSS's path() function, stroke rendering, and the shorthand tricks behind exported path data.Animating SVG: A Guide to CSS Transitions and Keyframes
Bring static shapes to life with transitions and @keyframes.Learn how to animate SVG with CSS: transitions vs @keyframes, self-drawing lines, clip-path reveals, staggered delays, motion paths, shape morphing, and scroll-driven timelines.