Scroll & Motion
A short paragraph split across five short lines. Each line fades in and slides up as the reader scrolls past it. Small type (~18px) on white. Feels more like an essay opening than a hero, which is the point.
Live preview
No extra dependencies. React 18+ and Tailwind CSS v3+ assumed. Save as LineRevealHero.tsx.
Paste the prompt into the tool you already use. Each version is written specifically for that tool, matched to the same design constraints so the output stays consistent.
Build components/LineRevealHero.tsx as a client component. Fixed inset-0 white bg (z-10) with a 260vh spacer below. Renders lines array as paragraphs stacked with 12-16px gap, each at 17-20px medium tracking-tight text-black leading-snug in a max-w-[640px] container centered. rAF + lerp (0.1) advances scroll progress. Each line i fades opacity 0.15 to 1 and translateY 12 to 0 across its own 15 percent slice of [0, 0.85]. Props: lines. Single default export. No extra deps.
Scroll & Motion
Word-by-Word Text Reveal Scroll Hero
Scroll-driven word-by-word text reveal hero for React, small headline that arrives one word at a time.
Scroll & Motion
Sticky Split Text Scroll Hero
Scroll-driven split text hero for React, two-half headline parts on scroll to reveal a subtitle.
Scroll & Motion
Horizontal Split Panels Scroll Hero
Split panel scroll hero for React, top and bottom images part on scroll to reveal centered headline, subtitle, and CTA.
Copy the source file from the "Copy code" button and save it into your components folder. Add any listed dependencies (React 18 or later and Tailwind CSS v3 or later are always required, plus framer-motion or gradflow if the component lists them). Import and render the component wherever you want it. Every prop is optional and defaulted.
Yes. Every component takes props for its content (headline, subtitle, image URL, CTA, and so on) and uses Tailwind classes throughout, so you can restyle without touching the logic. For deeper design changes, paste the prompt into Claude Code, Cursor, Lovable, Replit, or Codex and describe your brand tokens, spacing, or motion tweaks.
Yes. Everything on this page is free to copy, adapt, and ship in commercial projects. No attribution required. If you post a public showcase we always appreciate a link back.
All five prompts produce the same design. Claude Code and Codex are best when you want the component slotted into a project with existing conventions. Cursor is ideal for editing inside your IDE with the file open. Lovable and Replit spin up a fresh preview fastest, useful for a quick play.
Yes. The source files are plain React 18 client components. They run on any framework that supports React 18 and Tailwind CSS v3. If a component needs the "use client" directive (all of them do here, since they use hooks), keep the directive at the top of the file when you paste.