Table of Contents

Class Animator

Namespace
Velvet
Assembly
Velvet.Docs.dll

What UseAnimate() returns for animating elements inside its scope, Framer Motion's animate of useAnimate. Animations are cancelled when the scope's component unmounts.

public sealed class Animator
Inheritance
object
Animator

Methods

Animate(IReadOnlyList<AnimateSegment>)

Plays sequence: each segment starts where its AnimateAt puts it, so segments overlap. The default starts it when the previous one ends.

Animate(string, AnimateValues, StyleTransitionConfig?)

Animates the elements selector names inside the scope (.class, #name, a type name, compounds of them, descendants joined by a space, groups joined by a comma). Throws when the scope is not mounted.

Animate(VisualElement, AnimateValues, StyleTransitionConfig?)

Animates target through values on transition (0.3 s when null).