Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimatedLineDrawing<S, SS, S>

Animate the stroke of an SVG path.

This is generally a block element, but that can be changed by passing in a className.

AnimatedLineDrawing renders an <svg> element with a viewport from (0, 0) to the bottom right of the provided path.

Assuming a non-empty d parameter, the <svg> element will have one or more <path> children, one for every M command.

This component animates using the stroke-dasharray/stroke-dashoffset hack described at https://css-tricks.com/svg-line-animation-works

Screen capture

Props: AnimatedLineDrawingProps

Type parameters

  • S

  • SS

  • S

Hierarchy

Generated using TypeDoc