# LayerMixin.moveAfter
Moves this layer immediately after the given sibling in render order.

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

## LayerMixin.moveAfter() method

Moves this layer immediately after (visually below) the given sibling in render order.

**Signature:**

```typescript
moveAfter(sibling: Layer): void;
```

## Parameters

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

      <th>
        Type
      </th>

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

  <tbody>
    <tr>
      <td>
        sibling
      </td>

      <td>
        [Layer](/en/creator-api/nodes/layer)
      </td>

      <td>
        The layer to move this layer after. Must be in the same scene.
      </td>
    </tr>
  </tbody>
</table>

**Returns:** void

## Remarks

Throws if `sibling` belongs to a different scene.

## Example

```ts
const [first, second] = creator.activeScene.layers;
first.moveAfter(second); // first now renders below second
```
