Code · Claude Opus 5.5
Keycap: one mechanical keyboard key built in Three.js
Keycap: one mechanical keyboard key built in Three.js, centred on the screen like a premium hardware control. Nothing else on the page. It belongs to the same set as a brushed aluminium volume knob: same graphite background, same light, same single amber accent. The object: one sculpted keycap, a little larger than life, sitting in a small square cut-out of a brushed aluminium switch plate with softly rounded edges. The keycap is graphite PBT plastic: matte with a fine grainy texture, slightly rounded edges and corners that catch a thin highlight, a gentle concave dish on top, tapered sides. Its legend is printed in a clean light grey sans in the top left of the dish, starting as the letter F. Under the key, a warm amber LED glow leaks softly out around its base onto the plate. A soft contact shadow grounds the plate on the dark ground. Material and light: follow the wired skills. The plate is true conductor aluminium with a straight brushed finish (anisotropy along one direction) and varied roughness. The keycap is a dielectric plastic, not metal, with its own roughness variation. Light everything with a dark room of a few bright window cards through PMREM, with a neutral grey floor card (never a warm one, it tints metal brown), so reflections have shape. Tone map last with ACES. Render sharp at a pixel ratio up to 2. Interaction: click or tap the key, or press any letter or number on the keyboard. The key travels down about 4 mm with a crisp, quick spring, holds down while the key or pointer is held, and springs back up on release with a tiny overshoot. Each press changes the legend to the character typed (a click keeps the current one) and the amber underglow brightens for a moment, then settles. On hover the key lifts a hair. Under the plate, a small letter-spaced label in a clean sans: PRESS ANY KEY. Must work well: if the page starts with no size (a hidden tab or an iframe not laid out yet), use a 1 by 1 aspect and never let the camera become NaN, and recover on resize. Compute tangents for any anisotropic surface so the brushing never steps or shows a seam. Keyboard accessible (a button role with an aria label that names the current legend, visible focus ring only when focused from the keyboard, never after a click), prefers-reduced-motion (no spring, instant states), pauses when the tab is hidden, responsive from a phone to a wide desktop with the key always centred and fully visible.
- Model
- Claude Opus 5.5
- Made by
- Samnang Aing
- Shared
- Likes
- 0
Use its prompt, turn it into a video or a 3D model, or find more like it in Fil. Fil is invite-only for now: without an invitation, Open in Fil shows the waitlist.

