# How to set up layer logic to automate overlay transitions

Layer logic allows for smooth on-air transitions between overlays that have been assigned to the same layer type.&#x20;

To show how this works, let's look at an example. Say you're creating overlays for a talk show where the hosts will talk about a variety of subjects. You create a playlist of overlays for the subjects and assign them to the same logic layer. Then every time you send one of these overlays on air, the previous one animates out before the new one animates in.&#x20;

In this guide, you'll learn how to set up layer logic.

{% hint style="info" %}
To follow along, you'll need a composition. If you don't have one, first learn [how to build a composition](/singular-basics/building-overlays-in-composer/how-to-build-a-composition.md) or [extract a composition from a Singular template](/singular-basics/managing-overlays-in-the-dashboard/how-to-extract-a-composition-from-an-app.md).&#x20;
{% endhint %}

## How to set up layer logic

1. Open a composition in Composer and open the composition navigator.&#x20;

   <figure><img src="/files/EWV3nrydrjHdLGkVMRPD" alt=""><figcaption><p>Opening the composition navigator</p></figcaption></figure>
2. In the composition navigator's Logic Layer column, open the drop-down for an overlay.
3. Select the layer of your choice or create a new logic layer by entering a new name in the **new layer** field.

   <figure><img src="/files/Vw6IdOCeFMC7KRYOy3Xq" alt=""><figcaption><p>Adding layer logic</p></figcaption></figure>
4. Repeat for any additional layers.

{% hint style="danger" %}
If you build a composition where one layer spills into an area where another layer sits, they will overlap if they're onscreen at the same time. Thus, be mindful of the space that your layers occupy when you're creating and controlling overlays.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.singular.live/singular-basics/building-overlays-in-composer/how-to-set-up-layer-logic-to-automate-overlay-transitions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
