Skip to content
roguelite labsAnthony Spezzano ↗
motion/fade-up

Fade Up

Fades content upward into view when it enters the viewport. Fires once. Composable with any layout.

Use and inspectUse this when the motion supports the surrounding content. Connect callbacks and state to your app, keep the reset preview as a local demonstration, and add a reduced-motion fallback for movement or looping. The preview is synthetic; it does not call a backend.Next: inspect the source below and replace the demo inputs with your own data.
Fade UpFades content upward into view when it enters the viewport. Fires once. Composable with any layout.
Installnpm install framer-motion

Props

PropTypeDefaultDescription
childrenrequiredReactNodeContent to animate
delaynumber0Animation delay in seconds
distancenumber24Vertical offset in px before animating
durationnumber0.5Animation duration in seconds