Skip to content
UI

Search docs

Search components and documentation

New
Menu

Motion Blur

Sharpen a mounting element in from an 8px blur while it fades — the preconfigured blur preset, built on tw-animate-css with zero runtime dependencies.

Sharpen in

The content resolves from an 8px blur as it mounts.

Installation

npx logic2b@latest add motion-blur

Usage

import { MotionBlur } from "@/components/ui/motion-blur"

<MotionBlur duration={700}>
  <h2>Sharpen in</h2>
</MotionBlur>

MotionBlur is <Motion preset="blur"> — see Motion for the shared duration, delay, hover and asChild props, exit recipes and reduced-motion behavior. It pairs well with a longer duration on headings and hero copy.

API

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