I have built a cursor effects showcase web application using React, Vite, and Tailwind CSS.
Key Features Included:
-
Particle Trails (ParticleTrailCanvas.tsx):
- Customizable Particle Shapes: Star/Sparkle, Circle, Ring, Heart, Square, Bubble, and Matrix Code characters.
- Color Spectrum & Presets: Neon Rainbow, Cyberpunk Cyan, Golden Fire Embers, Cosmic Purple Nebula, Emerald Matrix, and Pure White Glow.
- Physics Controls: Adjustable particle count, size, speed, lifespan, gravity vector (upward/downward), wind displacement, velocity drag, and fade speed.
- Interactive Explosions: Click anywhere on the canvas to launch customizable particle bursts with Web Audio pop sounds and optional particle connection lines.
-
Magnetic Attraction (MagneticAttractionShowcase.tsx):
- Interactive UI Playground: Grid of modern glassmorphism cards, liquid action buttons, control sliders, and 3D tilt cards.
- Dynamic Vector Pull: Elements warp, deform, scale, and tilt towards the cursor based on inverse-square magnetic force vectors and Hooke spring dampening.
- Custom Controls: Adjustable magnetic radius, pull strength, dampening factor, 3D card matrix tilt, and attraction vs. repulsion modes.
-
Elastic Following (ElasticSpringCanvas.tsx):
- Multi-Node Spring Chain: Inverse kinematics trailing snake/worm with 3 to 40 nodes.
- 6 Unique Follower Themes:
- Neon Cyber Rings: Glowing concentric rings connected by a neon spine.
- Organic Neon Blob: Smooth fluid trailing ribbon.
- Pulsing Energy Orbs: Multi-colored energy balls with glowing halos.
- Bioluminescent Centipede: Deep-sea glowing creature with dynamic legs.
- Interactive Googly Eyes: Playful creature with pupil eyes that dynamically look toward motion direction!
- Pixel Laser Tail: Laser beam segment chain.
- Physics Adjusters: Tension stiffness, damping friction, node mass, base size, and node size decay.
-
Rainbow Ribbons (RainbowRibbonCanvas.tsx):
- Fluid Bezier Ribbons: Multi-strand parallel ribbons (1 to 8 strands) trailing the cursor.
- Spectrum Hue Shift: Customizable hue cycle speed, saturation, lightness, opacity, and taper profiles.
- Wave Turbulence: Real-time fluid displacement motion and additive blend modes (
lighter, screen, source-over).
-
Constellation Connections (ConstellationCanvas.tsx):
- Cosmic Star Mesh: Floating stellar nodes with proximity-threshold Delaunay connection lines.
- Cursor Gravity Modes: Choose between Pull (attract stars), Push (repel stars), Freeze (slow down nearby nodes), or None.
- Theming & Bursts: Color palettes (Deep Space Cyan, Gold Stardust, Cyber Magenta, Emerald Nebula, Pure White) and click supernova star bursts with chime sounds.
-
All-in-One Sandbox Fusion Mode (SandboxCanvas.tsx):
- Layer and render Constellations, Rainbow Ribbons, Particle Sparks, and Elastic Followers simultaneously at 60 FPS.
-
Physics Telemetry HUD & Audio Synthesizer:
- Real-time display for cursor X/Y coordinates, speed (px/s), active element count, FPS counter, and mathematical physics equations (F=−kx−cv, d=Δx).
-
Export Code Generator (CodeModal.tsx):
- Generates production-ready standalone Vanilla JavaScript (Canvas) or React Hook (
useCursorEffect) code with 1-click copy to clipboard.
-
Interactive Reflex Mini-Game (MiniGameModal.tsx):
- "Cursor Reflex Arena": 30-second game where players pop bouncing quantum orbs using their custom active cursor effect, tracking high scores and combos.
Files built: index.html, src/index.css, src/types/index.ts, src/utils/audio.ts, src/utils/presets.ts, src/utils/codeGenerators.ts, src/components/modes/ParticleTrailCanvas.tsx, src/components/modes/MagneticAttractionShowcase.tsx, src/components/modes/ElasticSpringCanvas.tsx, src/components/modes/RainbowRibbonCanvas.tsx, src/components/modes/ConstellationCanvas.tsx, src/components/modes/SandboxCanvas.tsx, src/components/BackgroundOverlay.tsx, src/components/Navbar.tsx, src/components/TelemetryHUD.tsx, src/components/ControlsPanel.tsx, src/components/CodeModal.tsx, src/components/MiniGameModal.tsx, src/components/ModePlaygroundHero.tsx, src/App.tsx