# 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 preview](https://legend.so/slides/effects/previews/exploded-layers/318ccb7be6a5735788f9a0483dca60b94a0f4df9487153a0d0e7b6a965806133.mp4)

Recorded in Legend Slides for macOS (release build).

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

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

## Use it in a deck

exploded-layers.mdx

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

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

export const layers = [
  { id: "view", label: "View", content: <Text style={{ color: "white", fontSize: 34 }}>What the user sees</Text>, color: "#155e75" },
  { id: "state", label: "State", content: <Text style={{ color: "white", fontSize: 34 }}>The current model</Text>, color: "#214b74" },
  { id: "data", label: "Data", content: <Text style={{ color: "white", fontSize: 34 }}>Where it comes from</Text>, color: "#312e81" },
];

# Exploded layers

<View style={{ width: 1696, height: 650 }}>
<Steps count={2}>{step => <ExplodedLayers expanded={step > 0} layers={layers} 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)
