Scroll Reveal
A paragraph whose words warm from grey to ink as it scrolls through the viewport, like a highlighter following the reader. Respects reduced motion. Harvested from Mosaiq.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/scroll-reveal.jsonWe build the interfaces people reach for every day, so the work reads clearly, moves quickly, and feels like it was made for them.
Usage
scroll-reveal-example.tsx
import { ScrollReveal } from "@dbs/ui";
export default function ScrollRevealExample() {
return (
<div className="max-w-xl px-4">
<ScrollReveal
text="We build the interfaces people reach for every day, so the work reads clearly, moves quickly, and feels like it was made for them."
className="text-2xl font-medium leading-snug tracking-[-0.02em] sm:text-3xl"
/>
</div>
);
}