Pro unlocks unlimited templates48:00:00Get Pro →

Crystalized Ball

A glass-like crystal sphere with an electric rim, glowing dust, and pointer interaction. Rendered with OGL and WebGL2.

Plasma

Pink crackling rim with rising square particles and interactive glow.

Loading…

Installation

CLI
npx @sonojs/ui@latest add crystalized-ball
Also needs
npm i ogl

Usage

page.tsx
"use client"

import CrystalizedBall from "@/components/3d/crystalized-ball"

export default function Page() {
  return (
    <div className="relative h-[600px] w-full overflow-hidden rounded-[12px] bg-black">
      <CrystalizedBall
        preset="plasma"
        color="#F25BD0"
        size={0.7}
        crackle={0.85}
        fill={0.5}
        interactive
        hoverStrength={0.7}
        strands={6}
        flares={0.65}
        glow={0.9}
        sparks={0.6}
        particleCount={15000}
        motion="rise"
        particleShape="square"
        depth={0.6}
        sway={0.5}
        twinkle={0.5}
        haze={0.7}
        dustSpeed={1}
        speed={1}
        intro
        paused={false}
      />
    </div>
  )
}

Props

PropTypeDefaultDescription
presetPreset"plasma"Selects a visual preset.
colorstringpreset colorCrystal rim and particle tint.
theme"dark" · "light""dark"Sets light or dark crystal rendering.
sizenumber0.7Crystal size within the stage.
interactivebooleantrueEnables pointer response.
hoverStrengthnumber0.7Pointer influence strength.
strandsnumber-Number of electric strands around the crystal.
cracklenumber-Electric rim crackle intensity.
flaresnumber-Rim flare strength.
glownumber-Outer glow intensity.
sparksnumber-Spark density and brightness.
particleCountnumber-Requested number of dust particles.
fillnumber-Crystal fill amount.
motion"rise" · "fall" · "drift" · "orbit"-Particle movement direction.
particleShape"square" · "round"-Particle shape.
depthnumber-Particle depth and parallax.
swaynumber-Particle sway amount.
twinklenumber-Particle twinkle amount.
hazenumber-Atmospheric haze strength.
dustSpeednumber-Dust animation speed.
speednumber1Global animation speed.
introbooleantruePlays the intro animation.
pausedbooleanfalsePauses the animation.
classNamestring-Classes on the stage container.
styleCSSProperties-Inline styles on the stage container.