---
title: "reveal"
description: "Fade the child away in coverage order as `progress` goes from 0 to 1."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.reveal"
categorySlug: "effects-reveal"
categoryTitle: "Reveals & wipes"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/reveal.ts#L273"
---

# reveal

Fade the child away in coverage order as `progress` goes from 0 to 1.

```ts
reveal(slots: RevealSlots): PointwiseEffect
```

Import `effects` from `shaders/std` and use `effects.reveal.reveal`.

At 0 the child is fully visible, at 1 it is gone, whatever `feather` is. Only the child's alpha changes; its colors stay put. Turning `invert` on reverses the order, so the last pixels go first.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `RevealSlots` |  |

## Example

```ts
effect: reveal({coverage: coverage.directional(p('angle')), progress: p('progress'), feather: p('feather'), invert: p('invert')})
```

> **Tip.** Animate `progress` from outside (a prop driven by scroll or a tween); the wipe itself has no clock.

## See also

- [`coverage`](/docs/primitives/effects-reveal/coverage) — The orders a wipe can follow.
- [`Coverage`](/docs/primitives/effects-reveal/coverage-class) — The order pixels disappear in: a number per pixel from 0 (goes first) to 1 (goes last).

## Used by

[BarnDoors](/docs/components/barndoors), [BlockDissolve](/docs/components/blockdissolve), [CheckerWipe](/docs/components/checkerwipe), [DiamondWipe](/docs/components/diamondwipe), [IrisWipe](/docs/components/iriswipe), [LinearWipe](/docs/components/linearwipe), [NoiseDissolve](/docs/components/noisedissolve), [RadialWipe](/docs/components/radialwipe), [RandomBars](/docs/components/randombars), [RippleWipe](/docs/components/ripplewipe), [VenetianBlinds](/docs/components/venetianblinds)