Build a cursor effects showcase with particle trails, magnetic attraction, elastic…
- User
Build a cursor effects showcase with particle trails, magnetic attraction, elastic following, rainbow ribbons, and constellation connections.
Assistant
Setting up the project. I'll install the icon and animation libraries first.
All packages installed. Let me check the entry files, then build the full showcase.
Now I'll create the foundation: HTML shell with fonts, global CSS, and the effect type system.
Foundation done. Now the five physics effects — particle trails, magnetic field, elastic jelly, rainbow ribbon, and constellation web.
All five effects are in. Now the effect registry with metadata, the canvas render engine (with idle auto-demo and DPR handling), and the custom cursor.
Engine and cursor done. Now the HUD layer — header, effect dock, control panel with live parameter sliders, giant outline typography, and helper readouts.
HUD complete. Now the App composition — state management, keyboard shortcuts, background layers, and the boot-sequence intro overlay.
All files created. Let me build to verify everything compiles.
Build succeeded. Let me fix one polish detail — the virtual pointer should start centered rather than streaking in from the (0,0) corner on the first frames.
One more interaction fix: arrow keys shouldn't switch modes while a parameter slider is focused (they should adjust the slider).
Build is clean. CURSOR//LAB is complete — an interactive field manual of cursor physics with five switchable apparatus:
The five effects (each a standalone canvas physics system with additive blending and motion afterglow):
- 01 Ember Trail — particle trails. Velocity-reactive spark fountain with buoyant rise and turbulence; hold to charge, click to detonate with a shockwave flash
- 02 Gravity Field — magnetic attraction. A jittered point lattice warped by a gravity well with orbital swirl and spring-back; click fires a repulsive pulse
- 03 Jelly Core — elastic following. A 16-node under-damped soft body that lags, overshoots, wobbles, sheds droplets at speed, and watches you with velocity-leading eyes
- 04 Chroma Ribbon — rainbow ribbons. Three braided, hue-drifting ribbons with taped taper and glow passes; click phase-shifts the spectrum
- 05 Stellar Weave — constellation connections. Path-plotted stars that link into a living graph, with a crosshair beacon joining nearby nodes
Experience details:
- Idle autopilot — after 3s without input, a Lissajous virtual pointer demos each effect automatically, so the stage is never static
- Live parameter lab — per-effect sliders (emission rate, well radius, stiffness, braid amp, link distance…) with real-time readouts, plus FPS / entity counters
- Custom triple-layer cursor — precise dot, lerped crosshair ring, trailing halo — recolored per mode
- Giant outline display type with
mix-blend-differencethat inverts as trails sweep through it, plus pointer parallax - Keyboard navigation (1–5 / arrows), boot-sequence intro, live coordinate/velocity readout, blueprint grid + film grain + vignette atmosphere
- Fully touch-capable with a mobile dock, DPR-capped rendering for smooth 60fps
Files built:
index.html,src/index.css,src/effects/types.ts,src/effects/ember.ts,src/effects/gravity.ts,src/effects/jelly.ts,src/effects/ribbon.ts,src/effects/constellation.ts,src/effects/index.ts,src/engine/EffectCanvas.tsx,src/components/Cursor.tsx,src/components/Hud.tsx,src/App.tsx
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.