Beta
Animate UI

Motion Effect

Motion effect component that displays the motion effect (fade in, slide in, etc.).

Installation

Examples

Slide

Motion Effect Slide

Fade Blur

Motion Effect Fade Blur

Props

PropTypeDefault
children
React.ReactNode
-
className?
string
-
transition?
Transition
{ type: 'spring', stiffness: 200, damping: 20 }
inView?
boolean
false
inViewMargin?
string
0px
inViewOnce?
boolean
true
delay?
number
0
blur?
boolean | string
false
slide?
boolean | { direction?: 'up' | 'down' | 'left' | 'right'; offset?: number }
false
fade?
boolean | { initialOpacity?: number; opacity?: number }
false
zoom?
boolean | { initialScale?: number; scale?: number }
false

Credits

  • Credits to Magic UI for the inspiration

Built by Skyleen. The source code is available on GitHub.

On this page