Skip to content
synccn

Blur Fade

Content fades in from a blur as it scrolls into view.

Installation

$ pnpm dlx shadcn@latest add @synccn/blur-fade

First time in this project? Connect synccn with one command.

Usage

import { BlurFade } from "@/components/ui/blur-fade";<BlurFade delay={100}>…</BlurFade>

API reference

Generated from the component's TypeScript types, so it always matches the code.

BlurFade

Fades content in from a blur when it scrolls into view. Stagger with `delay`.

  • delay
    number

    Default 0

    Milliseconds before the animation starts.

  • duration
    number

    Default 600

    Milliseconds the animation lasts.

  • y
    number

    Default 10

    Pixels the content rises.

  • blur
    number

    Default 8

    Starting blur in pixels.

  • once
    boolean

    Default true

    Animate only the first time it enters the viewport.

  • children
    React.ReactNode

    Content to render.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • Respects the reduced motion setting