WebGL Magnetic Field: Interactive Particle Engine for Framer
by Creative Apes
$8
Add physical tension to your digital canvas.
The WebGL Magnetic Field is a production-ready Three.js engine built for designers who need more than just a static background. It transforms your site's "negative space" into a tactile, reactive environment that rewards user curiosity through sophisticated particle physics.
Built on a custom GLSL vertex shader, the engine displaces thousands of particles along the Z-axis based on cursor proximity and scroll velocity, creating a sense of 3D depth that standard CSS cannot replicate.
✨ Key Highlights
Magnetic Raycasting: Interact with the field through a virtual magnet. Toggle between repulsion and attraction with a single slider.
Scroll-Sync Displacement: The grid ripples in response to the user's scroll speed, adding life to long-form landing pages.
Additive Blending: High-fidelity light-stacking logic ensures your particles glow and shimmer with cinematic quality.
Performance Optimized: Features a "Prop-Ref" update system that allows you to live-preview color and physics changes without restarting the WebGL scene.
⚙️ Technical Control Features
Color Interpolation: Particles shift color dynamically as they are displaced.
Perspective Logic: Adjust the camera distance to create a sense of scale and volume.
Grid Density: High-performance rendering of up to 300x300 point grids.
💡 Perfect For:
Luxury & Fashion Heros: Add a sophisticated, shimmering layer of light to your headers.
Tech & AI Branding: Represent data flows and neural networks through interactive particles.
Immersive Portfolio Backgrounds: Create a tactile environment that makes users stay on the page.