Function draw
- draw(
node: SVGElement & { getTotalLength(): number },
__namedParameters?: DrawParams,
): TransitionConfigParameters
- node: SVGElement & { getTotalLength(): number }
Optional__namedParameters: DrawParams
Returns TransitionConfig
Optional__namedParameters: DrawParams
Animates the stroke of an SVG element, like a snake in a tube.
intransitions begin with the path invisible and draw the path to the screen over time.outtransitions start in a visible state and gradually erase the path.drawonly works with elements that have agetTotalLengthmethod, like<path>and<polyline>.https://svelte.dev/docs/svelte-transition#draw