Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.


Docs
Blur Fade

Blur Fade

Blur fade in and out animation. Used to smoothly fade in and out content.

Random stock image 1
Random stock image 2
Random stock image 3
Random stock image 4
Random stock image 5
Random stock image 6
Random stock image 7
Random stock image 8
Random stock image 9

Installation

npx shadcn@latest add "https://magicui.design/r/blur-fade"

Examples

Props

PropTypeDefaultDescription
childrenReact.ReactNode-The content to be animated
classNamestring-The class name to be applied to the component
variantobject-Custom animation variants for motion component
durationnumber0.4Duration (seconds) for the animation
delaynumber0Delay (seconds) before the animation starts
offsetnumber6Offset for the animation
directionstring"down"Direction for the animation (up, down, left, right)
inViewbooleanfalseWhether to trigger animation when component is in view
inViewMarginMarginType"-50px"Margin for triggering the in-view animation
blurstring"6px"Amount of blur to apply during the animation