Effects
LEGEND APPSPreview

Comparison wipe

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

All effects
Recorded in Legend Slides for macOS (release build).

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

comparison-wipe.mdx
---
title: Comparison wipe
---

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

export function Panel({ refined }) { return <View style={{ flex: 1, padding: 90, backgroundColor: refined ? "#083344" : "#172033", justifyContent: "center" }}><Text style={{ color: "white", fontSize: 72 }}>{refined ? "Clear signal" : "Too much noise"}</Text><View style={{ flexDirection: "row", gap: 28, marginTop: 48 }}>{[0, 1, 2, 3].map(i => <View key={i} style={{ width: 245, height: refined ? 95 + i * 65 : 180 + (i % 2) * 150, borderRadius: 18, backgroundColor: refined ? "#22d3ee" : i % 2 ? "#6d28d9" : "#a3346b" }} />)}</View></View>; }

# Comparison wipe

<View style={{ width: 1696, height: 650 }}>
<Steps count={2}>{step => <ComparisonWipe position={step > 0 ? 0.5 : 0} before={<Panel refined={false} />} after={<Panel refined />} 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 โ†’

More in the presenting pack