Interface: LottieMobjectOptions
Defined in: src/mobjects/lottie/LottieMobject.ts:116
Options for creating a LottieMobject.
Properties
animationData?
optionalanimationData:LottieAnimationData
Defined in: src/mobjects/lottie/LottieMobject.ts:118
Parsed Bodymovin JSON. Required unless using LottieMobject.fromUrl.
center?
optionalcenter:Vector3Tuple
Defined in: src/mobjects/lottie/LottieMobject.ts:130
Center position [x, y, z]. Default: [0, 0, 0].
doubleSided?
optionaldoubleSided:boolean
Defined in: src/mobjects/lottie/LottieMobject.ts:134
Render both sides of the plane. Default: false.
height?
optionalheight:number
Defined in: src/mobjects/lottie/LottieMobject.ts:126
Height in scene units. Default: auto from the composition aspect ratio.
loop?
optionalloop:boolean
Defined in: src/mobjects/lottie/LottieMobject.ts:120
Loop the composition during live playback and time wrapping. Default: false.
opacity?
optionalopacity:number
Defined in: src/mobjects/lottie/LottieMobject.ts:132
Opacity from 0 to 1. Default: 1.
player?
optionalplayer:LottiePlayer
Defined in: src/mobjects/lottie/LottieMobject.ts:136
Inject a player directly (bypasses the factory and the network).
scaleToFit?
optionalscaleToFit:boolean
Defined in: src/mobjects/lottie/LottieMobject.ts:128
If both width and height given, fit inside the box preserving aspect. Default: true.
speed?
optionalspeed:number
Defined in: src/mobjects/lottie/LottieMobject.ts:122
Playback speed multiplier (1 = normal). Default: 1.
width?
optionalwidth:number
Defined in: src/mobjects/lottie/LottieMobject.ts:124
Width in scene units. Default: auto from the composition aspect ratio.