Shaban

Gradient Background

Heroes 62

About

A smooth, looping gradient background powered by Framer Motion, with optional overlay and center-aligned content. Perfect for creating vibrant hero sections, landing pages, or fullscreen app backdrops.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Gradient Background to your project and fits it to your theme.

Code

How Gradient Background is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { GradientBackground } from "@/components/ui/gradient-background";

export default function CustomColorsDemo() {
	// Ocean vibes
	const oceanGradients = [
		'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
		'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)',
		'linear-gradient(135deg, #4facfe 0%, #00f2fe 100%)',
		'linear-gradient(135deg, #43e97b 0%, #38f9d7 100%)',
		'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
	];

	return (
		<GradientBackground
			gradients={oceanGradients}
			animationDuration={8}
			overlay={true}
			overlayOpacity={0.2}
			animationDelay={0}
		>
			<div className="max-w-4xl px-6 text-center text-white">
				<h2 className="mb-4 text-7xl font-extrabold">Custom Colors</h2>
				<p className="text-2xl text-blue-100">
					Customize the colors to match your brand or mood
				</p>
			</div>
		</GradientBackground>
	);
}

Dependencies

More by Shaban

View all
  • Testimonials Columns

    Testimonials Columns

    7.1K
  • Zoom Parallax

    Zoom Parallax

    5.5K
  • Dotted Surface

    Dotted Surface

    3.6K
  • Footer Section

    Footer Section

    2.7K
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Logo Cloud 2

    Logo Cloud 2

    1.8K
  • Header 3

    Header 3

    1.7K
  • Logo Cloud 3

    Logo Cloud 3

    1.5K

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    32
  • Cabin To Sky Film Hero

    Cabin To Sky Film Hero

  • Real Estate 3D Hero

    Real Estate 3D Hero

    83
  • Hero

    Hero

    1.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • Chroma Sense Hero

    Chroma Sense Hero

    21