Hossain Jahed

Noisy Gradient Backgrounds

Heroes 310

About

A versatile React component for creating stunning, animated gradient backgrounds with an optional, customizable noise overlay. Easily configure gradient origins, a rich array of color stops, and noise parameters to generate unique and vibrant backdrops for your projects. This showcase demonstrates 9 beautiful, full-screen examples ready to inspire your designs. Built with Tailwind CSS in mind.

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

Code

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

Usage.tsx

import { GradientBackground } from "@/components/ui/noisy-gradient-backgrounds"; // Assuming this path is correct

const DemoOne = () => {
  const demoDivClasses = "h-screen w-full relative rounded-2xl border border-white/20 overflow-hidden";
  const demoDivGapClass = "mb-2"; 

  return (
    <div className="w-full p-2"> {/* Outermost wrapper with padding */}

      {/* 1. "Sunset Glow" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="bottom-middle"
          noiseIntensity={1.0}
          noisePatternSize={90}
          noisePatternRefreshInterval={2}
        />
      </div>

      {/* 2. "Oceanic Depth" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="top-left"
          colors={[
            { color: "rgba(0,20,30,1)", stop: "0%" },
            { color: "rgba(0,51,78,1)", stop: "20%" },
            { color: "rgba(0,119,182,1)", stop: "50%" },
            { color: "rgba(3,169,244,1)", stop: "75%" },
            { color: "rgba(173,216,230,1)", stop: "100%" }
          ]}
          noiseIntensity={0.8}
          noisePatternSize={100}
          noisePatternRefreshInterval={1}
        />
      </div>

      {/* 3. "Forest Canopy" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="right-middle"
          colors={[
            { color: "rgba(10,38,10,1)", stop: "0%" },
            { color: "rgba(0,77,64,1)", stop: "25%" },
            { color: "rgba(46,125,50,1)", stop: "50%" },
            { color: "rgba(129,199,132,1)", stop: "75%" },
            { color: "rgba(200,230,201,1)", stop: "100%" }
          ]}
          noiseIntensity={1.2}
          noisePatternSize={80}
          noisePatternRefreshInterval={2}
        />
      </div>

      {/* 4. "Cosmic Nebula" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="center"
          colors={[
            { color: "rgba(26,20,50,1)", stop: "0%" },
            { color: "rgba(76,17,88,1)", stop: "25%" },
            { color: "rgba(142,68,173,1)", stop: "50%" },
            { color: "rgba(233,30,99,1)", stop: "75%" },
            { color: "rgba(255,110,199,1)", stop: "100%" }
          ]}
          gradientSize="150% 150%"
          noiseIntensity={0.7}
          noisePatternSize={110}
          noisePatternRefreshInterval={1}
        />
      </div>

      {/* 5. "Desert Dawn" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="bottom-right"
          colors={[
            { color: "rgba(120,40,40,1)", stop: "0%" },
            { color: "rgba(188,71,73,1)", stop: "30%" },
            { color: "rgba(244,143,177,1)", stop: "60%" },
            { color: "rgba(252,207,178,1)", stop: "85%" },
            { color: "rgba(255,235,215,1)", stop: "100%" }
          ]}
          noiseIntensity={1.1}
          noisePatternSize={95}
          noisePatternRefreshInterval={2}
        />
      </div>

      {/* 6. "Fiery Embers" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="left-middle"
          colors={[
            { color: "rgba(50,0,0,1)", stop: "0%" },
            { color: "rgba(183,28,28,1)", stop: "30%" },
            { color: "rgba(244,67,54,1)", stop: "60%" },
            { color: "rgba(255,152,0,1)", stop: "85%" },
            { color: "rgba(255,235,59,1)", stop: "100%" }
          ]}
          noiseIntensity={1.5}
          noisePatternSize={70}
          noisePatternRefreshInterval={1}
        />
      </div>

      {/* 7. "Lavender Dreams" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="top-right"
          colors={[
            { color: "rgba(49,27,69,1)", stop: "0%" },
            { color: "rgba(94,53,177,1)", stop: "30%" },
            { color: "rgba(179,157,219,1)", stop: "60%" },
            { color: "rgba(237,231,246,1)", stop: "85%" },
            { color: "rgba(250,250,250,1)", stop: "100%" }
          ]}
          noiseIntensity={0.9}
          noisePatternSize={120}
          noisePatternRefreshInterval={2}
        />
      </div>

      {/* 8. "Arctic Haze" */}
      <div className={`${demoDivClasses} ${demoDivGapClass}`}>
        <GradientBackground
          gradientOrigin="top-middle"
          colors={[
            { color: "rgba(38,50,56,1)", stop: "0%" },
            { color: "rgba(84,110,122,1)", stop: "30%" },
            { color: "rgba(176,190,197,1)", stop: "60%" },
            { color: "rgba(236,239,241,1)", stop: "85%" },
            { color: "rgba(255,255,255,1)", stop: "100%" }
          ]}
          noiseIntensity={1.3}
          noisePatternSize={100}
          noisePatternRefreshInterval={1}
        />
      </div>

      {/* 9. "Retro Wave" - Last one, no bottom margin */}
      <div className={`${demoDivClasses}`}> {/* Note: No demoDivGapClass here */}
        <GradientBackground
          gradientOrigin="bottom-left"
          colors={[
            { color: "rgba(255,0,150,1)", stop: "0%" },
            { color: "rgba(200,0,200,1)", stop: "30%" },
            { color: "rgba(0,150,255,1)", stop: "60%" },
            { color: "rgba(0,200,200,1)", stop: "85%" },
            { color: "rgba(255,255,100,1)", stop: "100%" }
          ]}
          noiseIntensity={0.6}
          noisePatternSize={130}
          noisePatternRefreshInterval={2}
        />
      </div>
    </div>
  );
};

export { DemoOne };

More by Hossain Jahed

View all
  • Spotlight Card

    Spotlight Card

    8.8K
  • Cinematic landing Hero

    Cinematic landing Hero

    5.6K
  • Motion Footer

    Motion Footer

    5.6K
  • Sign In

    Sign In

    4.6K
  • AI prompt Box

    AI prompt Box

    3K
  • Glassmorphism Trust Hero

    Glassmorphism Trust Hero

    2.8K
  • Limelight Nav

    Limelight Nav

    2K
  • Ai chat input

    Ai chat input

    1.7K

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    930
  • Hero

    Hero

    1.2K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285
  • Home Section

    Home Section

    66
  • Hero Section 6

    Hero Section 6

    881
  • Hero Golden Spiral

    Hero Golden Spiral

    101