Glass Orb Cursor: a Soap-Glass Orb That Follows the Pointer
- Lab Skill
- v0.2.0
- Web design
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.
Ví dụ · 2

Chạy trong khung được sandbox hóa, không có quyền truy cập vào trang này.
Chạy trực tuyến
Chạy trong sandbox của SandBase và xem kết quả trong Lab.
Mở trong Lab ↗Bạn nhận được gì
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.
Cách hoạt động
- 01
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.
- 02
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.
- 03
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.
Câu hỏi thường gặp
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.
Thêm Skills
Tất cả Skills Web design →
Baked 3D Story Site
A three-page 3D story site with baked light, scroll stops that loop and a shader cut between pages, in one offline file.

UI Finishes
Metal, jewel, halo, roll, fill, offset and ring buttons, media cards, glass and textures, each checked in rest, hover, focus and pressed for real contrast.

Headline Motion
Headlines, labels and numbers that rise, decode, type, rotate, count and draw themselves without moving the layout, measured in a real browser.

Scroll Chapters
Long pages told chapter by chapter: a pinned stage, sliding panels, a text crawl, lit paragraphs, stacking cards and drifting columns, checked in a real browser for dead scroll.

Scroll 3D Product Site
A complete product website where scroll turns, opens and takes apart a live 3D model, with every video and image rendered from that model, in one offline file.

Landing Page System
A complete single-file landing page with a conversion structure and a shared visual system, checked by a rendered-page audit before delivery.
