Skip to content

glideSteps

glideSteps(tour, duration?): () => void

Defined in: motion.ts:14

Glides each step’s dialog from where the previous one sat instead of cutting to its new position, on the same curve as the modal overlay’s opening.

It animates the translate property, which composes with whatever positions the dialog, and does nothing under prefers-reduced-motion: reduce.

Tour

The tour to animate.

number = 420

Length of the glide in milliseconds.

A function that stops gliding.

() => void