Animated Hero
A stunning animated hero section with a rainbow aurora background, glassmorphic text effects, and optional theme toggle.
Install using CLI
npx shadcn@latest add "https://www.vengenceui.com/r/animated-hero.json"Install Manually
Install dependencies
Add util file
lib/utils.ts
Add styles to global CSS
Add the following CSS variables and animations to your app/globals.css file
Copy the source code
Copy the code below and paste it into components/ui/animated-hero.tsx
Usage
Examples
Custom Title
Without Theme Toggle
With Custom Class
Props
| Prop Name | Type | Default | Description |
|---|---|---|---|
| title | string | "AN AWESOME TITLE" | The hero title text to display. |
| showThemeToggle | boolean | true | Whether to show the theme toggle button. |
| className | string | "" | Additional CSS classes for the section. |
Features
Aurora Background: Mesmerizing rainbow gradient animation
Glassmorphic Text: Stunning text effect with blur and transparency
Theme Toggle: Built-in dark/light mode toggle with animation
Responsive Typography: Text scales beautifully across screen sizes
Smooth Animations: Framer Motion powered entrance animations
Dark Mode Support: Automatically adapts background effects
Extra Bold Text: Uses font-black for maximum impact
Customizable: Easy to customize title and toggle visibility