Docs (4.0.0)
class GlobalContext method

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