Beta
Animate UI

Motion Effect

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

Made by imskyleen

Installation

Usage

<MotionEffect slide>
  <p>Motion Effect</p>
</MotionEffect>

Examples

Slide

Motion Effect Slide

Fade Blur

Motion Effect Fade Blur

Props

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

Credits

  • Credits to Magic UI for the inspiration

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

On this page