Skip to main content

@microsoft/fast-animation > AnimateGroup

AnimateGroup class

Groups AnimateTo and AnimateFrom instances, providing a single API to operate on all of them.

Signature:
declare class AnimateGroup 

Constructors

ConstructorModifiersDescription
(constructor)(animations)Constructs a new instance of the AnimateGroup class

Properties

PropertyModifiersTypeDescription
cancel() => voidCancels all animations in the group
finish() => voidFinishes all animations in the group
onFinish() => voidThe onFinish callback.
pause() => voidPauses all animations in the group

Methods

MethodModifiersDescription
play()Play the group of animations
reverse()Reverses all animations in the group