Components
Per-word text reveal that fades each word in with a subtle upward drift for a calm, keynote-style heading entrance.
Loading preview...
"use client";
import PerWordCrossfade from "@/components/ui/per-word-crossfade";
export default function PerWordCrossfadeDemo() {
return (
<div className="flex min-h-[320px] w-full flex-col items-center justify-center gap-4 bg-background px-6 text-center">
<PerWordCrossfade
className="text-4xl font-semibold tracking-tight text-foreground sm:text-5xl"
delay={150}
stagger={90}
>
Think different.
</PerWordCrossfade>
<PerWordCrossfade
className="text-lg text-muted-foreground sm:text-xl"
delay={650}
stagger={70}
>
Per-word crossfade reveal.
</PerWordCrossfade>
</div>
);
}