Back

Blur Fade

Satu Visual Component

Fades and un-blurs its children up into place when scrolled in.

I fade in on scroll

Installation

Add it with the CLI:

Terminal

$

Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.

Usage

Wrap any block. It animates once, the first time it enters the viewport.

Props

PropTypeDefaultDescription
childrenReactNodeContent to reveal.
classNamestringExtra classes.
durationnumber0.4Animation duration, seconds.
delaynumber0Delay before starting, seconds.
yOffsetnumber6Vertical travel in px.
blurstring"6px"Initial blur amount.

Requirements

Install the npm dependencies:

Terminal

$