Function draw
- draw(
node: SVGElement & { getTotalLength(): number },
__namedParameters?: DrawParams,
): TransitionConfig Parameters
- 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.
in
transitions begin with the path invisible and draw the path to the screen over time.out
transitions start in a visible state and gradually erase the path.draw
only works with elements that have agetTotalLength
method, like<path>
and<polyline>
.https://svelte.dev/docs/svelte-transition#draw