CrazyGLCrazyGLHomeExploreGitHubBrowse heroesLoading hero…← Back to gallery@crazygl/gravitational-particles

Gravitational Particles

Hundreds of particles orbit invisible gravity wells. The cursor adds a temporary attractor that bends nearby paths into fresh orbits.

ReactCanvasInteractiveFont#particles#physics#gravity#orbits#interactive#premium

Usage

import GravitationalParticles from '@crazygl/hero-gravitational-particles';

export default function Page() {
  return (
    <GravitationalParticles
      heading="Orbits."
      particleCount={800}
      wellCount={3}
      cursorStrength={1.4}
    />
  );
}

Customise

  • ContentcontentType, heading, subheading, columns / custom node.
  • Backgroundtransparent toggle, backgroundColor.
  • ParticlesparticleCount, particleColor, accentColor, trailFade, particleSize, bloom.
  • PhysicswellCount, wellStrength, cursorStrength, cursorRepel, speed (time scale).

Best for

  • AI and data-platform launch pages signalling physics-grade engineering.
  • Premium SaaS and developer-tool landing pages.
  • Astronomy, science, and space-tech sites.
  • Dark, cinematic brand homepages with an interactive moment.
01 · Install the package

One command, zero config.

npm install @crazygl/hero-gravitational-particles
02 · Render the component

Import once, drop it in.

The component takes the same props you see in the live customizer on the right — every default ships poster-quality.

hero.tsx
import GravitationalParticles from '@crazygl/hero-gravitational-particles';

export default function Landing() {
  return (
    <GravitationalParticles />
  );
}
03 · Use it in a page

SSR-safe by default.

The wrapper renders static HTML on the server and only initialises the canvas after hydration, so search engines see your copy.

page.tsx
// app/page.tsx — works in SSR-first frameworks (Next, Remix, Astro, etc.)
'use client';

import GravitationalParticles from '@crazygl/hero-gravitational-particles';

export default function Page() {
  return (
    <section>
      <GravitationalParticles
        heading="Say hi."
        subheading="Your new hero."
      />
      <article>
        <h2>Welcome</h2>
        <p>Your content keeps its own voice below the hero.</p>
      </article>
    </section>
  );
}
You might also like

Similar heroes

Gravity Grid

Perspective-tilted wireframe plane warped by metallic spheres. The grid bends around each ball like a rubber sheet, and the cursor adds a fourth distortion well.

Magnetic Dot Cloud

Thousands of floating 3D points settle into a soft sphere of light. Wherever you point, a gravity well opens — nearby dots erupt radially outward from the sphere's centre, bulging the cloud like a living particle sculpture. A critically-damped spring eases every swell in and out; idle, the whole field drifts and turns.

Fireflies

Glowing fireflies drift over a stylised mountain horizon. The cursor attracts the swarm and makes them flare bright.

Constellation Network

Nodes float in 2-D space and connect to their nearest neighbours with glowing lines. The cursor attracts nearby nodes, redrawing the graph as you move.

Magnetic Logo Field

An image-driven particle field. Drop in a logo and the particles drift around then snap into its silhouette in waves. Cursor magnetically pulls or repels the swarm. Sample by alpha, luminosity, or transparency.

Logo Sand Formation

Thousands of glowing sand grains drift on a warm desert current and re-form the supplied logo. Pointer movement scatters them in a Gaussian shockwave; springs and damping pull each grain back into the silhouette.
Live customizer

Gravitational Particles

Transparent backgroundDrop the dark backdrop so the particles compose over the page bg.BackgroundParticle count800Particle colourAccent colourTrail fade0.1Higher = shorter trails. 0.10 = elegant streaks.Particle size1Bloom1Wells3Well strength1Cursor strength1.4How hard the cursor pulls. Negative would repel — use cursorRepel for that.Cursor repelsTime scale1Heading FontInteractivityWhich input drives the hero — try Scroll if you want the page to drive motion.
CrazyGL · crazygl.comProgrammable hero sections for real websites.