LayerMixin.shiftTo
Shifts the layer's timeline to start at the given frame.
LayerMixin.shiftTo() method
Shifts the layer's timeline so it starts at the given frame.
Signature:
shiftTo(frame: number): void;Parameters
Parameter | Type | Description |
|---|---|---|
frame | number | The new starting frame for the layer. |
Returns: void
Remarks
shiftTo moves the whole layer in time: startFrame, endFrame, timelineOffset, and every keyframe shift together by the same delta. Use this to slide a layer to a new starting position without rescaling its duration or breaking its animation.
To change only when a layer becomes visible without moving its keyframes, set startFrame directly instead.
Example
// Start the layer at frame 60 instead of frame 0
layer.shiftTo(60);Last updated: August 5, 2026 at 11:47 AMEdit this page