Soft Reveal
Content that fades in when it scrolls into view: a plain fade, out of focus, from washed-out gray, through fine grain, through mist or block by block, with stagger, scrub, exit and auto hide.
pixikit.com/docs/effects/soft-reveal
Customize
Effect
Blur0px
Duration1.8s
Ease
Delay0.0s
Threshold0.10
Initial opacity0.00
Stagger0.00s
Stagger from
Trigger
Once
Exit
Scrub
Disappear after0.0s
Disappear duration0.5s
Disappear ease
Props
23| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The content to fade in. |
container | string | HTMLElement | None | The scroll container that drives the fade, as a selector or an element; the page when not set. |
effect | "fade" | "focus" | "develop" | "dissolve" | "mist" | "pixel" | "fade" | How the content appears: a plain fade, out of focus, from washed-out gray, through fine grain, through mist, or block by block. |
blur | boolean | number | false | Extra blur the content starts from, in pixels; true adds 10. |
duration | number | 1 | Length of the fade, in seconds; values above 10 are read as milliseconds. |
ease | string | "power2.out" | A GSAP-style ease name, such as 'power3.out', 'expo.out' or 'none'. |
delay | number | 0 | Wait before the fade starts, in seconds; values above 10 are read as milliseconds. |
threshold | number | 0.1 | How far into the viewport the top of the content must be before it fades in, 0 to 1. |
initialOpacity | number | 0 | The opacity the content starts from. |
stagger | number | 0 | Fades each direct child in turn, this many seconds apart. |
staggerFrom | "start" | "end" | "center" | "edges" | "random" | "start" | Which child goes first when staggering. |
trigger | "scroll" | "mount" | "scroll" | Fade in when the content scrolls into view, or right away. |
once | boolean | true | Fades in once; turn off to fade back out whenever the content scrolls back below the view. |
exit | boolean | false | Fades the content back out as it scrolls off the top, and in again when it comes back. |
scrub | boolean | number | false | Ties the fade to the scroll position instead of playing it; a number smooths it, in seconds. |
disappearAfter | number | 0 | Fades the content out again this many seconds after it appears; 0 keeps it shown. |
disappearDuration | number | 0.5 | Length of the fade out, in seconds. |
disappearEase | string | "power2.in" | GSAP-style ease of the fade out. |
onStart | () => void | None | Called when the fade starts. |
onComplete | () => void | None | Called when the fade finishes. |
onDisappearanceComplete | () => void | None | Called when the fade out finishes. |
className | string | None | |
style | CSSProperties | None |