Skip to main content

Harshal V. LADHE

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 commands
    A 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.
    Published at:
    Categories:SVG
    Estimated reading time:20 min read
  • 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.
    Published at:
    Categories:Animations
    Estimated reading time:23 min read