Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneThe content to fade in.
containerstring | HTMLElementNoneThe 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.
blurboolean | numberfalseExtra blur the content starts from, in pixels; true adds 10.
durationnumber1Length of the fade, in seconds; values above 10 are read as milliseconds.
easestring"power2.out"A GSAP-style ease name, such as 'power3.out', 'expo.out' or 'none'.
delaynumber0Wait before the fade starts, in seconds; values above 10 are read as milliseconds.
thresholdnumber0.1How far into the viewport the top of the content must be before it fades in, 0 to 1.
initialOpacitynumber0The opacity the content starts from.
staggernumber0Fades 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.
oncebooleantrueFades in once; turn off to fade back out whenever the content scrolls back below the view.
exitbooleanfalseFades the content back out as it scrolls off the top, and in again when it comes back.
scrubboolean | numberfalseTies the fade to the scroll position instead of playing it; a number smooths it, in seconds.
disappearAfternumber0Fades the content out again this many seconds after it appears; 0 keeps it shown.
disappearDurationnumber0.5Length of the fade out, in seconds.
disappearEasestring"power2.in"GSAP-style ease of the fade out.
onStart() => voidNoneCalled when the fade starts.
onComplete() => voidNoneCalled when the fade finishes.
onDisappearanceComplete() => voidNoneCalled when the fade out finishes.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related