Function: laggedStartMap()
laggedStartMap<
T>(animClass,mobjects,options?):AnimationGroup
Defined in: animation/composition/LaggedStartMap.ts:56
Create a LaggedStartMap animation group. Applies an animation class to each mobject with staggered start times.
Type Parameters
T
T extends AnimationOptions = AnimationOptions
Parameters
animClass
The animation class to instantiate (e.g., FadeIn, Create)
mobjects
Mobject[]
Array of mobjects to animate
options?
Options including lagRatio and animation-specific options
Returns
Example
// Fade in each letter one by one
laggedStartMap(FadeIn, textMobject.children, { lagRatio: 0.1 })
// Create shapes with custom duration
laggedStartMap(Create, shapes, {
lagRatio: 0.2,
animOptions: { duration: 0.5 }
})