Ajmal Hussain

AI Hero Background

Heroes 240

About

A responsive, animated hero background built with Three.js using InstancedMesh and post-processing effects (Unreal Bloom + RGB Shift). Ideal for landing pages, hero sections, and visual effects.

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

Code

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

Usage.tsx

import AiHeroBackground from "@/components/ui/ai-hero-background";

const settings = {
  cols: 120,
  rows: 120,
  spacing: 0.6,
  dotRadius: 0.03,
  jitter: 0.3,
  hexOffset: 0.5,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen relative bg-black">
      <AiHeroBackground {...s} />
    </div>
  );
}

Dependencies

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

    932
  • Editorial Collage Hero

    Editorial Collage Hero

    431
  • Glass Fold

    Glass Fold

    212
  • HeroSectionWithGradient

    HeroSectionWithGradient

    336
  • Aero Hero-3

    Aero Hero-3

    559