Gravitational Orb

ProInteractivity3DWebGLpowered by @vectorvesper/motion

An orb of tens of thousands of glowing particles that churns like a body under gravity. It moves from a calm sphere through standing waves to a turbulent pulse, leans towards the pointer and turns when dragged, and it can follow a sound, so it suits a voice assistant.

Gravitational Orb

Included with membership

Members install Gravitational Orb with one command and get the full source, the usage code and the Framer remix, licensed for client work. One membership covers the whole library and the CLI.

When to use it

A hero or a voice assistant screen with one calm, living object at its centre. It glows, so it suits a dark page.

  • Give its parent a position and a height. The orb fills it.
  • Use morphMode="manual" with a function for morphProgress to make it follow a sound without re-rendering.
  • Pass a poster for visitors who prefer reduced motion.

Avoid:

  • Do not put it on a light page. The particles add light.
  • Do not put two on one page. Each draws a full scene.

Props

An orb of tens of thousands of glowing particles that churns like a body under gravity. It moves from a calm sphere through standing waves to a turbulent pulse, leans towards the pointer and turns when dragged, and it can follow a sound, so it suits a voice assistant.

<GravitationalOrb />

An orb of tens of thousands of glowing particles that churns like a body under gravity.

PropTypeDefaultDescription
themeGravitationalOrbTheme"celestial"Visual color theme.
particleCountnumber~80,000 (scaled by adaptive device quality)Total particle count target.
turbulencenumber1.0Global turbulence / gravitational wave amplitude multiplier.
frequencynumber1.25Base frequency of the surface noise undulations.
speednumber1.0Animation speed multiplier.
morphModeMorphMode—Morph animation mode: - "auto": smoothly cycles through calm sphere, harmonic resonance, and turbulent pulse (as in video) - "quiescent": calm spherical celestial orb - "resonant": standing harmonic wave lobes - "turbulent": intense amoebic gravitational deformation - "manual": driven strictly by `morphProgress` prop
morphProgressnumber | (() => number)—Manual morph progress (0.0 = calm sphere, 1.0 = full turbulent distortion). Used when morphMode is "manual". Pass a function to have it read every frame, so the orb can follow a sound without re-rendering.
pointSizenumber2.4Point size multiplier.
rimPowernumber2.2Rim Fresnel power (lower = broader glow, higher = sharp limb edge).
interactivebooleantrueWhether pointer cursor interacts with the gravitational field.
gravityPullnumber0.8Gravity pull factor towards the cursor.
allowOrbitbooleantrueEnable click-and-drag 3D rotation.
onTelemetry(telemetry: GravitationalOrbTelemetry) => void—Live telemetry streaming callback.
posterstring—Static poster image for reduced motion or below-floor devices.
classNamestring—Custom wrapper class.
childrenReact.ReactNode—Overlay content.
Visitors who prefer reduced motion get a still in place of the moving scene. Devices below the runtime's floor get the same.
It runs on the shared frame loop, and the runtime lowers the resolution when frames run long. It stops drawing while it is off screen.
Client component. The server renders the box and anything inside it, and the scene is built in the browser.
Back to all components