Fix bug with transition draw when delay is passed (#8094)

Signed-off-by: Gus Wezerek <gustav.wezerek@nytimes.com>

Signed-off-by: Gus Wezerek <gustav.wezerek@nytimes.com>
Co-authored-by: Gus Wezerek <gustav.wezerek@nytimes.com>
pull/7790/head
Gus Wezerek 2 years ago committed by GitHub
parent 094483b397
commit a5d6713c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,7 +198,10 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
delay,
duration,
easing,
css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`
css: (t, u) => `
stroke-dasharray: ${len};
stroke-dashoffset: ${u * len};
`
};
}

Loading…
Cancel
Save