Skip to content
UI

Search docs

Search components and documentation

New
Menu

Motion Fade

Fade a mounting element into place — the preconfigured fade preset, built on tw-animate-css with zero runtime dependencies.

Fade in

The card fades up into place when it mounts.

Installation

npx logic2b@latest add motion-fade

Usage

import { MotionFade } from "@/components/ui/motion-fade"

<MotionFade duration={600}>
  <Card>…</Card>
</MotionFade>

MotionFade is <Motion preset="fade"> — see Motion for the shared duration, delay, hover and asChild props, exit recipes and reduced-motion behavior.

API

Prop Type Default
duration number (ms) 500
delay number (ms) 0
hover lift | sink | scale | glow
asChild boolean false
…props React.ComponentProps<"div">