Table of Contents

Method Animate

Namespace
Velvet
Assembly
Velvet.Docs.dll

Animate(VisualElement, AnimateValues, StyleTransitionConfig?)

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

public AnimateControls Animate(VisualElement target, AnimateValues values, StyleTransitionConfig? transition = null)

Parameters

target VisualElement
values AnimateValues
transition StyleTransitionConfig

Returns

AnimateControls

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.

public AnimateControls Animate(string selector, AnimateValues values, StyleTransitionConfig? transition = null)

Parameters

selector string
values AnimateValues
transition StyleTransitionConfig

Returns

AnimateControls

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.

public AnimateControls Animate(IReadOnlyList<AnimateSegment> sequence)

Parameters

sequence IReadOnlyList<AnimateSegment>

Returns

AnimateControls