Skip to main content

Interface: LottieAnimation

Defined in: src/mobjects/lottie/LottieMobject.ts:48

The subset of a lottie-web AnimationItem this mobject drives. The real AnimationItem satisfies it structurally; tests implement it with a stub.

Properties​

frameRate​

frameRate: number

Defined in: src/mobjects/lottie/LottieMobject.ts:52

Frame rate in frames per second.


totalFrames​

totalFrames: number

Defined in: src/mobjects/lottie/LottieMobject.ts:50

Total number of frames in the composition.

Methods​

destroy()​

destroy(): void

Defined in: src/mobjects/lottie/LottieMobject.ts:58

Release the player's resources.

Returns​

void


goToAndStop()​

goToAndStop(value, isFrame?): void

Defined in: src/mobjects/lottie/LottieMobject.ts:54

Seek to a frame (isFrame true) or a time, and stop there.

Parameters​

value​

number

isFrame?​

boolean

Returns​

void


setSpeed()?​

optional setSpeed(speed): void

Defined in: src/mobjects/lottie/LottieMobject.ts:56

Set the live-playback speed multiplier.

Parameters​

speed​

number

Returns​

void