scrollxui

Dual Sparks

Heroes 19

About

A canvas background effect that emits animated spark waves radiating outward and inward from the top corners of a container, for hero sections and decorative backgrounds.

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

Code

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

Usage.tsx

import { DualSparks } from "@/components/ui/dualsparks";

export default function DualSparksDemo() {
  return (
    <DualSparks
      sparkColor="#000000"
      sparkColorDark="#ffffff"
      sparkSize={2}
      sparkCount={22}
      ringsPerWave={3}
      waveInterval={1200}
      maxRadius={1000}
      corners="both"
      className="w-full h-screen flex items-center bg-black justify-center"
    >
      <h2 className="bg-clip-text text-transparent text-center bg-linear-to-b from-neutral-900 to-neutral-700 dark:from-neutral-600 dark:to-white text-2xl md:text-4xl lg:text-7xl font-sans font-bold tracking-tight relative z-20">
        DualSparks, <br /> Background.
      </h2>
    </DualSparks>
  );
}

More by scrollxui

View all
  • Contact with Globe

    Contact with Globe

    346
  • Features With Panel

    Features With Panel

    300
  • Logo Cloud Marquee

    Logo Cloud Marquee

    154
  • Hero Section with Cards

    Hero Section with Cards

    148
  • FAQ Accordion

    FAQ Accordion

    143
  • Particles

    Particles

    99
  • Hero With Pixel Background

    Hero With Pixel Background

    81
  • Testimonials Marquee

    Testimonials Marquee

    71

More in Heroes

View all
  • SaaS Template

    SaaS Template

    2.5K
  • Hero

    Hero

    1.3K
  • Responsive Hero Banner

    Responsive Hero Banner

    2K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    968
  • Editorial Collage Hero

    Editorial Collage Hero

    458
  • Minimalist Hero Fashion

    Minimalist Hero Fashion

    296
  • Glass Fold

    Glass Fold

    279
  • Aero Hero-3

    Aero Hero-3

    576