Skip to content

Wiggle API / CompositionConfig

Interface: CompositionConfig ​

Properties ​

background? ​

optional background?: string


duration? ​

optional duration?: Duration

Total duration. Optional in scene mode, where scenes set the length.


fps ​

fps: number


height ​

height: number


motionBlur? ​

optional motionBlur?: boolean | { samples?: number; shutter?: number; }

Motion blur for the whole composition. true uses the natural defaults (180 degree shutter, 16 samples). An object tunes them: shutter is the exposure as a shutter angle in degrees (180 exposes half the frame, the filmic amount; higher smears more), and samples is how many sub-frames are averaged (higher is smoother and costlier). It applies to all moving layers; exclude one with node.motionBlur(false). Lottie export drops it.


width ​

width: number