Installation
$ pnpm dlx shadcn@latest add @synccn/blur-fadeFirst 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`.
PropTypeDescription
- delay
numberDefault
0Milliseconds before the animation starts.
- duration
numberDefault
600Milliseconds the animation lasts.
- y
numberDefault
10Pixels the content rises.
- blur
numberDefault
8Starting blur in pixels.
- once
booleanDefault
trueAnimate only the first time it enters the viewport.
- children
React.ReactNodeContent to render.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- Respects the reduced motion setting
More motion
MarqueeEndless scrolling row or column that pauses on hover.Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.