Table of Contents

Method UseAnimate

Namespace
Velvet
Assembly
Velvet.Docs.dll

UseAnimate()

Framer Motion's useAnimate: a scope ref to give the root element (refCallback: scope.SetElement) and an Animator whose Animate animates elements inside it by reference or by selector, alone or as a sequence whose segments overlap through AnimateAt. Each call returns AnimateControls. What it animates are inline values, so it reaches elements outside the declarative Motion tree; the animations run on the mount's frames and are stopped when the component unmounts.

public static (Ref<VisualElement> scope, Animator animate) UseAnimate()

Returns

(Ref<VisualElement> scope, Animator animate)