# Glass Orb Cursor: a Soap-Glass Orb That Follows the Pointer

> Build a hero section with a wobbling soap-glass orb that follows the pointer on a spring, bends the lit floor behind it, carries a rainbow band round its rim, swells while the button is held and leaves rings on the floor. One WebGL fragment shader; pure code with no model calls and no media files. Page text and a frosted card sit above it. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Web design](https://www.sandbase.ai/skills/web-design)
- Version: 0.2.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/web-design/glass-orb-cursor

## What you get

Bring your brand, headline, a line of copy, a button, links, up to four card items, palette and language. The Skill returns a full landing page (index.html), a section to paste into an existing site and a React component, with the bundled open fonts.

## Install

Download the Skill package from https://www.sandbase.ai/skills/web-design/glass-orb-cursor (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/glass-orb-cursor build a hero for <brand>: headline <HEADLINE>, one line <copy>, button <label>, card items <up to four>, palette <light | dark colours>, links <nav links>, in <en | zh-CN>
```

## How it works

1. **Write the site file** Glass Orb Cursor asks for the brand, headline, one line of copy, a button, links, up to four glass-card items, palette and language, then plans the landing page after the hero. It writes site.json, where orb.radius runs from 0.06 to 0.32, film from 0 to 3, refract from 0 to 1 and swell from 1 to 2.5. A dark palette.top switches to light text.
2. **Build with Node** node scripts/build-web.mjs --site site.json --out site builds the page with Node.js 18 or newer, or node scripts/sample.mjs night-studio --out preview starts from an example; field-signals is the other. --embed writes one self-contained HTML file with both languages. One WebGL fragment shader draws the floor and the orb, refracting the scene and adding a thin-film rim band.
3. **Preview and hand over** node scripts/serve.mjs site serves a local preview. Move the pointer, hold the button, rest and narrow the window to phone width, checking that the orb follows on a spring, swells while held and rings the floor on a click. Hand over index.html, or section.html with glass-orb.js and fonts, or GlassOrb.jsx. The verified example has 11 sections after the hero.

## FAQ

### Does Glass Orb Cursor call a model?

No. Glass Orb Cursor is pure code with no model calls and no media files, and both examples cost nothing to build. Your coding agent writes the copy in site.json, and the shader draws everything else.

### Does the Glass Orb Cursor orb bend the page text?

No. Glass Orb Cursor refracts only the drawn scene, a gradient with a horizon and a ringed floor. The page's text and the frosted card sit above the canvas in HTML, so they stay sharp, selectable and translatable.

### What happens in Glass Orb Cursor without WebGL?

Glass Orb Cursor needs WebGL, and version 1 is enough. Without it a soft CSS bubble follows the pointer instead. With prefers-reduced-motion the orb rests in the middle and does not wobble.

### What files does Glass Orb Cursor output?

Glass Orb Cursor writes index.html, section.html, GlassOrb.jsx, glass-orb.js with no dependencies, glass-orb.css with go- prefixed classes, landing.js for the page sections and a fonts folder with Geist, Geist Mono and Instrument Serif under the SIL OFL. GlassOrb.mount(el, options) returns inspect, probe and destroy.

### Does Glass Orb Cursor work on phones?

Yes. Glass Orb Cursor moves the orb with a dragged finger and was checked in a 390 px phone viewport with no sideways overflow. The glass card is hidden on phones. The check ran in headless Chrome under a no-network policy in both languages, with no console errors.

## Examples

- Research collective hero with a soap-glass orb that follows the pointer (scene)
- Low Hum sound studio (scene)
- Field Signals research hero (video)
- Low Hum sound studio (video)
