Skip to main content

Interface: LottieMobjectOptions

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

Options for creating a LottieMobject.

Properties​

animationData?​

optional animationData: LottieAnimationData

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

Parsed Bodymovin JSON. Required unless using LottieMobject.fromUrl.


center?​

optional center: Vector3Tuple

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

Center position [x, y, z]. Default: [0, 0, 0].


doubleSided?​

optional doubleSided: boolean

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

Render both sides of the plane. Default: false.


height?​

optional height: number

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

Height in scene units. Default: auto from the composition aspect ratio.


loop?​

optional loop: boolean

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

Loop the composition during live playback and time wrapping. Default: false.


opacity?​

optional opacity: number

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

Opacity from 0 to 1. Default: 1.


player?​

optional player: LottiePlayer

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

Inject a player directly (bypasses the factory and the network).


scaleToFit?​

optional scaleToFit: boolean

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

If both width and height given, fit inside the box preserving aspect. Default: true.


speed?​

optional speed: number

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

Playback speed multiplier (1 = normal). Default: 1.


width?​

optional width: number

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

Width in scene units. Default: auto from the composition aspect ratio.