Efferd

Gradient Background

Heroes 475

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 DefaultDemo() {
	return (
		<GradientBackground className="flex min-h-screen items-center justify-center">
			<div className="space-y-6 px-4 text-center text-white">
				<h1 className="text-4xl font-extrabold md:text-5xl">
					Animated Gradients Background
				</h1>
			</div>
		</GradientBackground>
	);
}

Dependencies

More by Efferd

View all
  • Testimonials Columns

    Testimonials Columns

    7.1K
  • Zoom Parallax

    Zoom Parallax

    5.2K
  • Dotted Surface

    Dotted Surface

    3.5K
  • Footer Section

    Footer Section

    2.7K
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Logo Cloud 2

    Logo Cloud 2

    1.7K
  • Header 3

    Header 3

    1.6K
  • Logo Cloud 3

    Logo Cloud 3

    1.5K

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Editorial Collage Hero

    Editorial Collage Hero

    442
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    947
  • Hero Section 6

    Hero Section 6

    891
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    421
  • Glass Fold

    Glass Fold

    246