Options
All
  • Public
  • Public/Protected
  • All
Menu

A mechanism for creating visual animations that can be satisfied by different instances of an AnimationProvider.

Hierarchy

  • AnimationFactory

Index

Constructors

constructor

Properties

Protected _animationProvider

_animationProvider: AnimationProvider

Protected _isInitialized

_isInitialized: boolean

Methods

Protected _init

  • _init(): void
  • Initializes this facility, using a default animation provider if one has not been specified.

    Returns void

create

  • Creates a new animation for a particular element.

    Parameters

    • element: HTMLElement

      The element to apply the animation to.

    • Optional keyframes: AnimationKeyframe[] | string[]

      The animation's keyframes.

    • Optional frameCallback: AnimationFrameCallback

      A callback to invoke after every each keyframe has completed.

    Returns AnimationSequence

getAnimationProvider

  • Returns the animation provider for this factory.

    Returns AnimationProvider

setAnimationProvider

  • Sets the animation provider for this factory.

    Parameters

    Returns void