animateAsync
Runs an animation on the provided view output element.
animateAsync(ref: { lastRenderOutput?: RenderContext.Output; }, animation?: RenderContext.OutputTransformer): Promise<void>
Summary
This method passes a renderer-specific transformation object to an asynchronous transformer, which may use methods on the transform object to animate a view.
Parameters
- ref — The UI component to be animated
- transformer — An asynchronous function that performs transformations, or a named animation from the current theme
Errors
- This method throws an error if the renderer hasn’t been initialized yet.
Related
- class GlobalContextA singleton class that represents the global application state.
- interface RenderContext.OutputTransform staticAn interface for an object that represents transformations to be applied to an output element.
- interface RenderContext.OutputTransformer staticAn interface that describes an asynchronous transformer for a rendered output element.
- animationsA map that defines a set of predefined output transform animations.