About this product
Orb Collection is a pair of ambient WebGL orbs for heroes and backgrounds: Crystal Orb and Prism Orb, each as a compiled script plus a minified build. Each orb is a glass sphere with a glowing core inside, light streaks racing through the core and a small moon in orbit. It tilts toward the pointer and pulses when clicked.
Crystal Orb is the monochrome edition, with 4 finishes: silver, pearl, steel and onyx. Prism Orb is the iridescent edition, with 4 finishes: aurora, opal, sunset and lagoon. Both render as a ray-marched volume in a fragment shader (Three.js r128) on a fully transparent canvas, so your page background shows through the glass.
Dark and light themes are built in. In auto mode the orb follows your site: it reads data-theme="dark" or "light" on your html element and switches live when that attribute changes, and otherwise follows the visitor's OS setting. Dark mode adds light on top of the page, so use it on dark backgrounds; light mode draws a dark core with a metal outline, so use it on light backgrounds.
Control it from code: setFinish() for a smooth colour transition, setTheme() to switch themes, pulse() to trigger the click pulse, and a cleanup function to stop the orb and free GPU memory. Options cover finish, theme, interactivity, animation speed and a pixel-ratio cap. If WebGL or Three.js is unavailable the start function returns null, so you can show a static image instead.
Performance is handled for you: rendering pauses automatically while the orb is scrolled off-screen, prefers-reduced-motion slows the animation to 20% speed, and the pixel ratio is capped at 1.75 by default. Use one or two orbs per page - each orb is a full ray-marched shader. About 11 KB minified per orb, plus Three.js.
Works with plain HTML, React, Vue, Svelte, Webflow (custom code), WordPress and others, in any browser with WebGL 1 or 2. What is inside: dist/crystal-orb.js and .min.js, dist/prism-orb.js and .min.js, vendor/three.min.js (Three.js r128, MIT, included - nothing loads from a CDN), demo/index.html (both orbs side by side with finish and theme switches), demo/crystal.html, demo/prism.html and demo/hero-example.html (a ready-made responsive hero section), examples/vanilla/minimal.html and examples/react/OrbHero.jsx, and 6 preview images (hero dark, hero mobile, crystal, prism light, index light, index dark).
Included screens / pages
- Orb previews (previews folder)
UI interactions
- Crystal Orb WebGL render
- Prism Orb WebGL render
What you get
- dist/crystal-orb.js
- dist/crystal-orb.min.js
- dist/prism-orb.js
- dist/prism-orb.min.js
- previews (6 images)
- README.md
- LICENSE.txt (v2)
- examples/vanilla/minimal.html
- examples/react/OrbHero.jsx
Integrations
Frontend visual only. Include one orb script per page; no backend.
FAQ
Do I need Three.js installed?
No. The orb scripts bundle what they need; the Three.js license file is included for attribution.
What does the license allow?
License v2: buy once, use for unlimited end products - your own projects and projects you build for clients. No distribution, resale, source sharing, or use as a competing template/UI kit. Full v2 text is included as LICENSE.txt in the sold ZIP.
Version 1.0.0 · Updated




