# Exploded layers

Reveal and compare caller-supplied content while keeping its state mounted.

Source: https://legend.so/slides/effects/exploded-layers/

Legend Slides: Preview.

[← All effects](https://legend.so/slides/effects/)![Exploded layers in Legend Slides](https://legend.so/slides/effects/previews/exploded-layers/bc470f69f68d1aa590b78fe85fd6f87f4219d42ade9f3490e7a3316713b60060.png)

Still captured in Legend Slides for macOS (development build).

[Install in Slides](legend-slides://effects/install?pack=presenting&version=1.0.0)[Open example in Slides](legend-slides://effects/example?effect=exploded-layers)[Download example](https://legend.so/slides/effects/examples/exploded-layers/2eb6a08377d66fc69fc0a4d032bf582104a206aae039854bfdc79d4827d15df2.mdx)

Requires a Legend Slides build with effect installation support. Installs the presenting pack (1.0.0, 22 KB source) and its dependencies. macOS host capabilities: reanimated, skia. Installed decks work offline.

## Use it in a deck

```mdx
---
title: Exploded layers
---

import { View, Text } from "react-native";
import { ExplodedLayers } from "slides:presenting/Composition";


# Exploded layers

<View style={{ width: 1696, height: 650 }}>
<Steps count={3}>{step => <ExplodedLayers expanded={step > 0} layers={[{id: "ui",label: "UI",content: <Text>Presentation</Text>,color: "#155e75"},{id: "data",label: "Data",content: <Text>Model</Text>,color: "#312e81"}]} style={{width: 1696,height: 580}} />}</Steps>
</View>
```

## Configure

**content**

Supply the illustrations or React content.

**style**

Give the composition explicit stage bounds.

Only imported effects enter the compiled deck. [Installation and versioning →](https://legend.so/slides/effects/installation/)

[View Markdown](https://legend.so/slides/effects/exploded-layers.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Exploded+layers&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Fexploded-layers%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
