# Content swap

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

Source: https://legend.so/slides/effects/content-swap/

Legend Slides: Preview.

[← All effects](https://legend.so/slides/effects/)![Content swap in Legend Slides](https://legend.so/slides/effects/previews/content-swap/a4668fbfb63dbb36ea851d273ef1f22ac649ead47bfb53278a61112fe4fb74af.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=content-swap)[Download example](https://legend.so/slides/effects/examples/content-swap/266301988f43f12aafca430f4eebe49330dcf91acda34899f60acfbd12cb0442.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: Content swap
---

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


# Content swap

<View style={{ width: 1696, height: 650 }}>
<Steps count={3}>{step => <ContentSwap active={step > 0} before={<Text style={{color: "white",fontSize: 100}}>The evidence</Text>} after={<Text style={{color: "#67e8f9",fontSize: 100}}>The takeaway</Text>} 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/content-swap.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Content+swap&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Fcontent-swap%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
