AnimationFactory: ((values: [number, number][], action: AnimationFrameCallback, customDuration?: number) => Animation)

Type declaration

    • (values: [number, number][], action: AnimationFrameCallback, customDuration?: number): Animation
    • Type of Animation Factory

      Parameters

      • values: [number, number][]

        Array of start and end animation values

      • action: AnimationFrameCallback

        Function for handling of interframe modification

      • Optional customDuration: number

        Override default duration of animation

      Returns Animation