Plasma Globe

Procedural plasma sphere rendered with OGL - multiple filaments, volumetric glow, and optional pointer tilt. The canvas is transparent by default so any stage color shows through. Respects prefers-reduced-motion.

Default

Electric blue filaments with glass corona - move the pointer to bend the arcs.

Loading…

Installation

CLI
npx @sonojs/ui@latest add plasma-globe
Also needsnpm i ogl

Usage

page.tsx
"use client"

import { PlasmaGlobe } from "@/components/3d/plasma-globe"

export default function Page() {
  return (
    <div className="relative h-[380px] w-full overflow-hidden rounded-[12px] bg-[#020617] sm:h-[480px]">
      <PlasmaGlobe height="100%" />
    </div>
  )
}

Props

PropTypeDefaultDescription
speednumber1Global animation time multiplier.
intensitynumber1.15Emission / color intensity multiplier.
interactivebooleantruePointer tilt plus filament focus bias.
coronanumber1.15Glass Fresnel rim and outer halo strength.
cracklenumber0.45Electrical flicker on filaments (0–1).
heightstring · number380Stage height (shorter default for mobile).
classNamestring-Classes on the stage container.
styleCSSProperties-Inline styles on the stage container.