Fade in
The card fades up into place when it mounts.
Installation
npx logic2b@next add motion-fadeUsage
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.
Live playground
Edit the component props and inspect the exact JSX before copying it. The preview loads only when this section enters the viewport.
Generated JSX
<MotionFade
duration={500}
delay={0}
>Fade reveal</MotionFade>Fade reveal
API reference
Generated from the public TypeScript exports in src/ui/motion-fade.tsx.
MotionFadeProps
Typetype MotionFadeProps = Omit<MotionProps, "preset">MotionFade
ComponentFade a mounting element in. Preconfigured `<Motion preset="fade">`.
Props: MotionFadePropsAccessibility contract
Machine-readable behavior and consumer responsibilities for motion-fade.
- Support
- Composition contract
- Pattern
- fade animation
- Motion for React
Built-in semantics
- Preserves child semantics and accepts reduced-motion behavior from the motion foundation.
Consumer responsibilities
- Keep content available without animation and avoid fading essential feedback too quickly.
Known limitations
- • Motion safety depends on the selected transition and consumer composition.