Dhileep Kumar GM

Celestial Sphere

Heroes 278

About

"Celestial Sphere," combines several of the best ideas from the code you shared: Procedural Generation: Like the lightning and dark veil examples, it uses procedural noise to generate a unique, ever-shifting visual. Mouse Interaction: Inspired by the iridescence shader, the visual reacts to your mouse movements, creating a "warp" effect as you move the cursor. Customizable Props: The component is highly customizable, allowing you to control hue, speed, zoom, and particleSize through props. Clean React Structure: It's built as a self-contained React component using modern hooks (useRef, useEffect), making it easy to drop into any project.

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

Code

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

Usage.tsx

import { CelestialSphere } from "@/components/ui/celestial-sphere";

const settings = {
  hue: 210.0,
  speed: 0.4,
  zoom: 1.2,
  particleSize: 4.0,
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <CelestialSphere
        hue={s.hue}
        speed={s.speed}
        zoom={s.zoom}
        particleSize={s.particleSize}
        className="absolute top-0 left-0 w-full h-full"
      />
      <div className="relative z-10 text-center text-white pointer-events-none">
        <h1 className="text-6xl font-bold tracking-tighter">
          Celestial Sphere
        </h1>
        <p className="mt-4 text-lg text-gray-300">
          An interactive WebGL shader component for React.
        </p>
      </div>
    </div>
  );
}

Dependencies

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    2K
  • Woven Light Hero

    Woven Light Hero

    1.7K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    1K
  • Mountain Scene

    Mountain Scene

    889
  • HolographicCard

    HolographicCard

    842
  • 3D Animation

    3D Animation

    832
  • Premium Auth

    Premium Auth

    614

More in Heroes

View all
  • Agency Hero Section

    Agency Hero Section

    1.1K
  • Real Estate 3D Hero

    Real Estate 3D Hero

    89
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.8K
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

    37
  • App Integration Celestial Hero

    App Integration Celestial Hero

    17
  • Chroma Sense Hero

    Chroma Sense Hero

    23
  • Hero

    Hero

    1.4K