# Comparison wipe

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

Source: https://legend.so/slides/effects/comparison-wipe/

Legend Slides: Preview.

[← All effects](https://legend.so/slides/effects/)![Comparison wipe in Legend Slides](https://legend.so/slides/effects/previews/comparison-wipe/1acacada557b3f49bf9e1f4ae2235197e149ed018c40a44e9b78012cbb4aaae0.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=comparison-wipe)[Download example](https://legend.so/slides/effects/examples/comparison-wipe/6e06080c8f7cffe6f98afd25874d0e2f630bc0e98ab50614d55c05d4d97ab166.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: Comparison wipe
---

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


# Comparison wipe

<View style={{ width: 1696, height: 650 }}>
<Steps count={3}>{step => <ComparisonWipe position={step / 2} before={<View style={{flex: 1,backgroundColor: "#164e63"}} />} after={<View style={{flex: 1,backgroundColor: "#6d28d9"}} />} beforeLabel="Before" afterLabel="After" 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/comparison-wipe.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Comparison+wipe&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Fcomparison-wipe%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
