expandAnimationPreset
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / expandAnimationPreset
Function: expandAnimationPreset()
function expandAnimationPreset(
element,
preset,
options?): KeyframeMap;Defined in: packages/timeline/src/animation-presets.ts:459
Expand a preset into keyframe tracks for element, merged (upserted) into
any existing tracks. Pure; the applyAnimationPreset reducer applies it.
Parameters
element
preset
| "fade-in"
| "slide-in"
| "pop-in"
| "scale-in"
| "zoom-in"
| "whip-in"
| "blur-in"
| "fade-out"
| "slide-out"
| "pop-out"
| "zoom-out"
| "whip-out"
| "blur-out"
| "ken-burns"
| "punch-zoom"
| "pulse"
| "breathe"
| "float"
| "sway"
| "shake"
options?
direction?
"left" | "right" | "up" | "down" = ...
durationMs?
number = ...
Length of the enter/exit portion, or the half-cycle of a looping preset. Defaults are per-preset (see ANIMATION_PRESET_DEFAULT_DURATION_MS).
intensity?
number = ...
Effect magnitude multiplier. Default 1.