l-aurora-modal

Modal with aurora borealis effects and fluid background animations. Features multiple color palettes, interactive particles, and smooth transitions.

Arctic Aurora

โ„๏ธ Arctic Experience

This modal showcases the classic aurora borealis colors - cyan and blue tones reminiscent of the northern lights dancing across polar skies.

The Arctic palette creates a serene, otherworldly atmosphere perfect for winter-themed applications or professional dashboards.

Cosmic Portal

๐ŸŒŒ Cosmic Journey

Experience the colors of deep space with purple and magenta hues that evoke nebulae and distant galaxies.

This configuration uses increased aurora intensity and more particles for a more dramatic effect.

Enchanted Forest

๐ŸŒฒ Natural Magic

Green and gold tones create an organic, nature-inspired atmosphere with slower, more gentle wave animations.

Perfect for eco-friendly applications, nature photography portfolios, or wellness platforms.

Golden Hour

๐ŸŒ… Warm Embrace

Warm orange and red tones with fast-moving aurora effects create an energetic, passionate atmosphere.

Ocean Depths

๐ŸŒŠ Underwater Serenity

Deep blues and aqua tones with fullscreen immersion and enhanced backdrop blur effects.

This fullscreen modal demonstrates maximum impact for important announcements or immersive experiences.

Interactive Configuration

๐Ÿ› ๏ธ Live Configuration

This modal's appearance changes based on the controls below. Experiment with different settings to see real-time updates.

Current Settings:

Size: large
Palette: arctic
Aurora Intensity: 1.0
Particles: 20

Color Palettes & Effects

Interactive Configuration Lab

Aurora Configuration

1.0
1.0x
20
1.0
[Lab] Aurora Modal initialized and ready for experimentation...
๐ŸŒˆ Aurora Effects
๐Ÿ“ Usage in Code
<l-aurora-modal 
    id="myModal"
    size="large"
    color-palette="cosmic"
    aurora-intensity="1.5"
    aurora-speed="1.2"
    particle-count="30"
    backdrop-blur="true"
    close-on-backdrop="true"
    glow-intensity="1.3">
    <span slot="title">My Aurora Modal</span>
    <div slot="content">
        <p>Your content here...</p>
    </div>
</l-aurora-modal>

<script>
const modal = document.getElementById('myModal');

// API Methods
modal.show('fade');      // Show with fade animation
modal.hide();            // Hide modal
modal.toggle();          // Toggle visibility
modal.isOpen();          // Check if open
modal.setTitle('New Title');
modal.setContent('<p>New content</p>');

// Event Listeners
modal.addEventListener('modal-open', e => {
    console.log('Modal opened');
});

modal.addEventListener('modal-close', e => {
    console.log('Modal closed');
});
</script>
โš™๏ธ Available Attributes
open - Initial visibility state
size - small|medium|large|fullscreen
color-palette - arctic|cosmic|forest|sunset|ocean
aurora-intensity - Aurora effect strength
aurora-speed - Animation speed
particle-count - Number of particles
backdrop-blur - Backdrop blur effect
close-on-backdrop - Close when clicking backdrop
animation-type - fluid|waves|spiral
glow-intensity - Interactive glow strength