@mcut/timeline
splitKeyframes
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / splitKeyframes
Function: splitKeyframes()
function splitKeyframes(keyframes, offsetMs): object;Defined in: packages/timeline/src/keyframes.ts:329
Split a keyframe map at element-local offsetMs (the cut point) into the
tracks for the left and right halves. Boundary keyframes carry the
evaluated value so motion stays continuous across the cut; the easing of a
crossed segment is approximated on each side by the segment's own easing.
Parameters
keyframes
| Partial<Record<
| "blur"
| "rotation"
| "position.x"
| "position.y"
| "scale.x"
| "scale.y"
| "opacity"
| "volume"
| "letterSpacing", object[]>>
| undefined
offsetMs
number
Returns
object
left
left:
| Partial<Record<
| "blur"
| "rotation"
| "position.x"
| "position.y"
| "scale.x"
| "scale.y"
| "opacity"
| "volume"
| "letterSpacing", object[]>>
| undefined;right
right:
| Partial<Record<
| "blur"
| "rotation"
| "position.x"
| "position.y"
| "scale.x"
| "scale.y"
| "opacity"
| "volume"
| "letterSpacing", object[]>>
| undefined;