Magnetic Lines
Magnetic vertical lines rendered on a with a spring-based interaction system.
Lines are subtly pulled toward the cursor or touch position using a smooth falloff curve, creating a responsive magnetic field effect. Lines closest to the pointer can transition from dashed to solid and fade opacity based on proximity, enhancing depth and motion.
Includes a full Tweakpane control panel for live tuning of:
- Interaction modes (Hover, Click, Press)
- Falloff curves and influence radius
- Spring physics and damping
- Dash patterns and opacity falloff
- Exporting and loading custom presets
Built with vanilla JavaScript and optimized for high-DPI rendering.
Inspired by a Linear billboard mockup.