Skip to content
Logic2BUI

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@next 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.

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>

API reference

Generated from the public TypeScript exports in src/ui/motion-fade.tsx.

View JSON

MotionFadeProps

Type
type MotionFadeProps = Omit<MotionProps, "preset">

MotionFade

Component

Fade a mounting element in. Preconfigured `<Motion preset="fade">`.

Props: MotionFadeProps

Accessibility contract

Machine-readable behavior and consumer responsibilities for motion-fade.

View JSON
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.