# LayerMixin.shiftTo
Shifts the layer's timeline to start at the given frame.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## LayerMixin.shiftTo() method

Shifts the layer's timeline so it starts at the given frame.

**Signature:**

```typescript
shiftTo(frame: number): void;
```

## Parameters

<table>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        frame
      </td>

      <td>
        number
      </td>

      <td>
        The new starting frame for the layer.
      </td>
    </tr>
  </tbody>
</table>

**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

```ts
// Start the layer at frame 60 instead of frame 0
layer.shiftTo(60);
```
