Animated Gradient

PreviousNext

Renders a full-screen animated multicolor radial gradient background using SVG `<radialGradient>` and `<animate>` elements. Useful for vibrant, dynamic backgrounds behind your UI.

animated-gradient-default

Installation

pnpm dlx shadcn@latest add https://ui.dalim.in/r/styles/default/animated-gradient.json

Usage

import { AnimatedGradient } from "@/components/animated-gradient"
<div className="relative h-screen w-full overflow-hidden">
  {/* Animated background */}
  <AnimatedGradient className="opacity-80" />
 
  {/* Foreground content */}
  <div className="relative z-10 flex h-full items-center justify-center text-3xl font-bold text-white">
    Neon Vibes ✨
  </div>
</div>

API Reference

PropTypeDefaultDescription
classNamestringOptional CSS class name to apply custom styles or positioning