Blur Fade
Blur fade in and out animation.
Hello World
Nice to meet you
Installation
Dependencies
Props
Blur Fade
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Content to animate |
className | string | - | Additional CSS classes |
variant | { hidden: { y: number }; visible: { y: number } } | - | Custom motion variants for hidden and visible states |
duration | number | 0.4 | Animation duration in seconds |
delay | number | 0 | Animation delay in seconds |
offset | number | 6 | Distance offset for the slide animation in pixels |
direction | "up" | "down" | "left" | "right" | "down" | Direction of the fade-in slide animation |
inView | boolean | false | Whether to trigger animation only when element is in view |
inViewMargin | MarginType | "-50px" | Margin for the in-view intersection observer |
blur | string | "6px" | Amount of blur applied during the hidden state |