Skip to main content

Harshal V. LADHE

SVG and Vector Graphics

Posts, tutorials, and snippets on Scalable Vector Graphics (SVG) — from coordinates, the viewBox, and basic shapes to mastering the path element and building custom vector icons.

Content in SVG

  • Snippet:CSS & SVG Loading Spinner from One Circle

    Build an SVG loading spinner from one circle.
    Build an accessible SVG loading spinner from one circle: pathLength and stroke-dasharray draw the arc, CSS spins it, with reduced-motion support.
    Published at:
    Categories:SVG
    Estimated reading time:6 min read
  • Snippet:SVG Circular Progress Ring with CSS Variables

    Build an SVG progress ring from one CSS variable.
    Build an accessible SVG circular progress ring: pathLength and a --progress variable set the arc, with a gradient variant and smooth value transitions.
    Published at:
    Categories:SVG
    Estimated reading time:6 min read
  • Post:SVG Essentials: Mastering Shapes, Coordinates, and Styling

    Build sharp, scalable graphics with basic shapes.
    Learn how to build resolution-independent SVG graphics. Master the viewBox, coordinates, essential shapes, and CSS styling with fill, stroke, and hover animations.
    Published at:
    Categories:SVG
    Estimated reading time:19 min read
  • Post: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:22 min read
  • Snippet:SVG Marching Ants Border for Drop Zones and Selections

    Animate a marching dashed SVG border around any box.
    Build a marching ants border with an SVG rect and stroke-dashoffset: a seamless loop, a crisp overlay for any box size, and reduced-motion support.
    Published at:
    Categories:SVG
    Estimated reading time:7 min read