Add an animated hero section to a Next.js landing page
When to use: You need a polished hero animation and don't want to browse docs yourself.
Prerequisites
- Next.js or React project — npx create-next-app@latest
- Tailwind + shadcn/ui — Magic UI builds on these; install if missing
Flow
-
Ask for it naturallyAdd a blur-fade-in animation for the H1 and CTA in my hero section.✓ Copied→ Agent calls searchRegistryItems for 'blur fade' and returns the component
-
Install + wire inInstall the component and paste it into app/page.tsx replacing the current hero.✓ Copied→ Install command runs; imports added; hero updated
-
Tweak timingSlower entrance — 600ms delay between H1 and CTA.✓ Copied→ Props updated inline
Outcome: A ship-worthy hero animation without leaving the editor.
Pitfalls
- Mixing Magic UI with a non-Tailwind setup — Most components assume Tailwind classes; port to CSS modules only if you're ready for that work