# BaseLayerMixin.moveBefore
Moves this layer immediately before (i.e. visually above) the given sibling in render order.

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

## BaseLayerMixin.moveBefore() method

Moves this layer immediately before (i.e. visually above) the given sibling in render order.

**Signature:**

```typescript
moveBefore(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 place this layer before. Must be in the same scene.
      </td>
    </tr>
  </tbody>
</table>

**Returns:**

void

## Remarks

Throws an error if the sibling cannot be resolved or belongs to a different scene.

## Example

```ts
// Place logo above the background layer
logo.moveBefore(background);
```
