Blur

An entrance that resolves from blur to sharp.

blur.tsx

Installation

1

Install the packages

npm install @prequelui/react motion

@prequelui/react reuses the primitive library your components already depend on.

2

Add the component

npx shadcn@latest add https://animate.prequelui.terravidhal.me/r/blur.json

npx shadcn@latest add https://animate.prequelui.terravidhal.me/r/blur.json

3

Turn on the motion

npx @prequelui/cli@latest animate blur

The CLI finds the component through components.json, swaps the import and removes the CSS animation classes that Motion replaces.

Usage

Import the component and compose it exactly like the primitive it wraps. Motion is enabled by default; the tempo prop scales every duration and softens every spring.

blur.tsx
import { Blur } from "@/components/prequelui/effects/blur";

export default function Demo() {
  return (
    <Blur initialBlur={12} blur={0} delay={100} className="text-4xl font-medium">
      From soft to sharp.
    </Blur>
  );
}
import { Blur } from "@/components/prequelui/blur";

export function Variant() {
  return (
    <Blur tempo={1.2}>
      …
    </Blur>
  );
}

Animation

The element starts with a filter and resolves to sharp on the entrance spring. Nothing moves: only the blur radius changes, so the layout and the text metrics are untouched.

  • Entrance spring: stiffness 200, damping 20.
  • Delay is expressed in milliseconds and added to the transition delay.
  • The list variant staggers each child by the holdDelay value.
  • Reduced motion starts at blur 0.
spring 200 / 20blur 10 → 0delay in msstaggered list

API Reference

Each part accepts the usual HTML props in addition to the motion props below. No accessibility prop is hidden behind the animation layer.

Blur

PropTypeDefault
initialBlurnumber10
blurnumber0
delaynumber0
inViewbooleanfalse
inViewOncebooleantrue
inViewMarginstring"0px"
transitionTransitioncomponent spring or tween
asChildbooleanfalse
classNamestring—

Blurs

PropTypeDefault
holdDelaynumber0
childrenReactElement[]—

Built by Vidhal. The source is available on GitHub.

Last updated: 11/17/2026