Interactive Demo with Controls

l-morphic-slider - Interactive Demo

l-morphic-slider

Slider with magnetic effects and luminous trail. Track deforms magnetically towards cursor, thumb leaves glowing particles behind.

Configurations and Effects

🎛️ Standard Slider with Magnetic Effects

Track deforms magnetically towards cursor, thumb with glow and particle trail.

Magnetic Track
Trail Particles
Glow Effects

📊 Vertical Sliders with Different Colors

Vertical orientation perfect for audio mixers, volume controls and dashboards.

⚡ Minimalist Configuration

Static track without magnetic deformation - for less intensive interfaces.

No Deformation
No Trail
Reduced Glow

Interactive Demo with Controls

🎛️ Complete Configuration

Test all functionalities and observe effects in real time.

50
Current Value
0
Total Changes
0
Trail Particles

Slider Controls

50
0.3
1.0
[Demo] Morphic Slider loaded and ready for testing...
🎛️ Slider Features
📝 Usage in Code
<l-morphic-slider 
    value="50"
    min="0"
    max="100"
    step="5"
    color="#00ffff"
    label="Volume"
    orientation="horizontal"
    track-deform="true"
    trail-enabled="true"
    magnetic-strength="0.4"
    glow-intensity="1.2">
</l-morphic-slider>

<script>
const slider = document.querySelector('l-morphic-slider');

// API Methods
slider.setValue(75);
slider.getValue(); // returns current value
slider.disable();
slider.enable();
slider.reset(); // set to middle

// Event Listeners
slider.addEventListener('change', e => {
    console.log('Value:', e.detail.value);
});

slider.addEventListener('slide-start', e => {
    console.log('Drag started');
});

slider.addEventListener('slide-end', e => {
    console.log('Drag ended');
});
</script>
⚙️ Available Attributes
value - Current value
min - Minimum value
max - Maximum value
step - Increment value
disabled - Disable slider
color - Effect color
orientation - horizontal|vertical
track-deform - Magnetic deformation
trail-enabled - Particle trail
magnetic-strength - Magnetic force
glow-intensity - Effect intensity
label - Slider label