Jessi

Fireworks Background

Heroes 3

About

Fireworks Background with smooth animation

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

Code

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

Usage.tsx

import { FireworksBackground } from "@/components/ui/fireworks-background";
import * as React from 'react';


// If you don't have a cn helper, you can define a simple one here or remove it in the imported component.
function cn(...classes: Array<string | undefined | false | null>) {
  return classes.filter(Boolean).join(' ');
}


export default function DemoOne() {
  return (
 <div className={cn('relative h-full w-full min-h-screen bg-black text-white')}>
      {/* Fireworks background fills the screen */}
      <FireworksBackground
        className="absolute inset-0"
        // optional tweaks:
        population={1.2}
        fireworkSpeed={{ min: 4, max: 8 }}
        fireworkSize={{ min: 2, max: 5 }}
        particleSpeed={{ min: 2, max: 7 }}
        particleSize={{ min: 1, max: 5 }}
      />

      {/* Foreground content */}
      <main className="relative z-10 flex items-center justify-center min-h-screen">
        <h1 className="text-5xl md:text-7xl font-extrabold tracking-tight">
          Happy Day! 🎆
        </h1>
      </main>
    </div>
  ) ;
}

More by Jessi

View all
  • Wireframe Dotted Globe

    Wireframe Dotted Globe

    3.4K
  • 3D Gallery Photography

    3D Gallery Photography

    3.3K
  • Animate Card Animation

    Animate Card Animation

    2.4K
  • The Infinite Grid

    The Infinite Grid

    1.9K
  • Hero Dithering Card

    Hero Dithering Card

    1.6K
  • Hero section with smooth bg Shader

    Hero section with smooth bg Shader

    1.3K
  • 3D Image gallery

    3D Image gallery

    1.3K
  • Stacked Panels Cursor intereactive component

    Stacked Panels Cursor intereactive component

    1.2K

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.4K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Hero

    Hero

    1.2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    931
  • Editorial Collage Hero

    Editorial Collage Hero

    430
  • Glass Fold

    Glass Fold

    212
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    285
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336