Skip to main content

Harshal V. LADHE

Line-Draw Animations with stroke-dashoffset

Animating `stroke-dashoffset` to create the classic self-drawing line effect, paired with `stroke-dasharray` and the `pathLength` attribute.

2 posts

Posts tagged stroke-dashoffset

  • 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