Manu Arora

Stars Background

Heroes 151

About

A shooting starry background, as seen on figmaplug.in

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

Code

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

Usage.tsx

"use client";
import { StarsBackground } from "@/components/ui/stars-background";

const settings = {
  density: 0.00015,
  allTwinkle: true,
  twinkleProbability: 0.7,
  minSpeed: 0.5,
  maxSpeed: 1,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen relative bg-neutral-950">
      <StarsBackground
        starDensity={s.density}
        allStarsTwinkle={s.allTwinkle}
        twinkleProbability={s.twinkleProbability}
        minTwinkleSpeed={s.minSpeed}
        maxTwinkleSpeed={s.maxSpeed}
      />
    </div>
  );
}

More by Manu Arora

View all
  • Container Scroll Animation

    Container Scroll Animation

    10.2K
  • Glowing Effect

    Glowing Effect

    4.4K
  • Aurora Background

    Aurora Background

    4.4K
  • Timeline

    Timeline

    4.3K
  • Sparkles

    Sparkles

    4.1K
  • Lamp

    Lamp

    3.7K
  • Sidebar

    Sidebar

    3.6K
  • Bento Grid

    Bento Grid

    2.7K

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

    919
  • HeroSectionWithGradient

    HeroSectionWithGradient

    333
  • Editorial Collage Hero

    Editorial Collage Hero

    422
  • Hero 03

    Hero 03

    313
  • Glass Fold

    Glass Fold

    191