Hierarchy

  • View
    • LottieView

Constructors

Properties

android: any

LottieAnimationView

autoPlay: boolean

Flag determining whether the animation should start playing as soon as the view is ready.

completionBlock: (animationFinished: boolean) => void

Block to be executed upon completion of the animation. The animation is considered complete when it finishes playing and is no longer looping.

contentMode: any

(iOS only) The current UIViewContentMode.

duration: number

The duration of the animation.

ios: any

AnimationView

loop: boolean

Flag determining whether the animation should loop or not.

progress: number

The current progress of the animation.

speed: number

The current speed of the animation.

src: string

The current source of the animation.

Methods

  • (Android) Cancels the animation.

    (iOS) Pauses the animation.

    Returns void

  • Returns true if the view is currently animating.

    Returns boolean

  • Plays the animation from the beginning.

    Returns void

  • Plays the animation from the specified start and end progress values (between 0 and 1).

    Parameters

    • startProgress: number
    • endProgress: number

    Returns void

  • Sets the provided color value on each property that matches the specified keyPath.

    Parameters

    • value: Color
    • keyPath: string[]

    Returns void

  • Sets the provided opacity value on each property that matches the specified keyPath.

    Parameters

    • value: number
    • keyPath: string[]

    Returns void