A scroll-triggered wavy text animation component that creates flowing motion effects using Framer Motion and scroll context.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
npm packages it adds
- react
- motion
Code
import { WavyBlock, WavyBlockItem } from "@/registry/gammaui/wavy-text-block"
const titles = [
"Flexible",
"Animated",
"Customizable",
"Optimized",
"Lightweight",
"Responsive",
"UI Blocks",
]
export default function DemoOne() {
return (
<main className="h-screen pt-60">
<div className="w-full max-w-6xl">
<WavyBlock className="flex flex-col items-start justify-start gap-6">
{titles.map((title, index) => (
<WavyBlockItem key={title} index={index}>
<h2 className="text-[4rem] leading-none font-bold tracking-tighter whitespace-nowrap uppercase">
{title}
</h2>
</WavyBlockItem>
))}
</WavyBlock>
</div>
</main>
)
}
































