@mcut/timeline
isOnKeyframe
Generated TypeScript API reference for the public mcut SDK.
mcut SDK / timeline/src / isOnKeyframe
Function: isOnKeyframe()
function isOnKeyframe(
element,
property,
timelineMs,
toleranceMs?): boolean;Defined in: packages/timeline/src/keyframes.ts:212
Is the playhead exactly on a keyframe (drives the diamond's filled state)?
Parameters
element
property
| "blur"
| "rotation"
| "position.x"
| "position.y"
| "scale.x"
| "scale.y"
| "opacity"
| "volume"
| "letterSpacing"
timelineMs
number
toleranceMs?
number = 1
Returns
boolean