A Windows XP-themed embed generator that creates stunning fullscreen lava backgrounds for CRM systems and web applications. Features an authentic retro interface with modern functionality.
- Ticket Hub - Orange/green lava animation
- Dashboard - Blue lava animation
- Coming Soon - Additional presets in development
- Authentic Windows XP styling with Tahoma fonts
- Classic title bar with gradient effects
- Functional window controls (close button)
- Fully draggable window interface
- Touch-friendly interactions
- Adaptive layout for all screen sizes
- Optimized touch targets (44px minimum)
- Unified mouse and touch event handling
- One-click embed code generation
- Dynamic URL detection
- Copy-to-clipboard functionality
- Fullscreen iframe implementation
-
Clone the repository:
git clone https://github.com/Poupun/LavaBackground-Generator.git cd LavaBackground-Generator -
Open in your web server:
- For local development: Open
index.htmlin your browser - For production: Deploy to your web server
- For local development: Open
-
Required files:
index.html # Main application styles.css # Windows XP theme styling lavaembed.html # Orange lava animation embedlava-blue.html # Blue lava animation
-
Select a Preset:
- Choose from available background animations
- Preview appears in the preset grid
-
Generate Code:
- Click "Generate Embed Code"
- Copy the generated iframe code
-
Integrate:
<!-- Example generated code --> <iframe src="https://yoursite.com/lavaembed.html" width="100%" height="100%" frameborder="0" style="position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;"> </iframe>
- 🖱️ Dragging: Click and drag the title bar to move the window
- 📱 Touch: Touch and drag on mobile devices
- ❌ Close: Click the X button to close (with confirmation)
- 📍 Position: Starts in top-right corner on desktop, full-width on mobile
-
Create animation file (e.g.,
my-animation.html) -
Update preset configuration:
const presets = { 'my-preset': { name: 'My Preset', file: 'my-animation.html' } };
-
Add preset item to HTML:
<div class="xp-preset-item" data-preset="my-preset"> <div class="xp-preset-preview"> <div class="preset-my-animation"></div> </div> <div class="xp-preset-label">My Preset</div> </div>
The Windows XP theme can be customized in styles.css:
- Window colors: Modify
.xp-windowbackground - Title bar: Update
.xp-titlebargradient - Preset previews: Customize
.preset-*classes - Mobile responsiveness: Adjust
@mediaqueries
LavaBackground-Generator/
├── index.html # Main application interface
├── styles.css # Windows XP theme & responsive styles
├── lavaembed.html # Orange lava background animation
├── embedlava-blue.html # Blue lava background animation
└── README.md # This documentation
- Font Awesome 6.4.0 (CDN)
- No JavaScript frameworks required
- Pure HTML/CSS/JavaScript implementation
- ✅ Chrome 80+
- ✅ Firefox 75+
- ✅ Safari 13+
- ✅ Edge 80+
- ✅ Mobile browsers (iOS Safari, Chrome Mobile)
- Dragging: Native DOM manipulation with transform positioning
- Touch Support: Unified mouse/touch event handling
- Responsive: CSS Grid and Flexbox with mobile-first approach
- Clipboard: Modern Clipboard API with fallback support
- Desktop:
> 768px- Original XP layout, top-right positioning - Tablet:
481px - 768px- Larger touch targets, 3-column presets - Mobile:
≤ 480px- Single column layout, full-width window
- Minimum 44px touch targets
touch-action: noneprevents browser gestures- Larger fonts and spacing on small screens
- Optimized button sizes for thumbs
Perfect for deployment on:
- GitHub Pages
- Netlify
- Vercel
- Any web server with static file support
- Host the generator on your domain
- Generate embed codes for different sections
- Paste iframe code into your CRM's custom HTML areas
- Backgrounds will appear behind your content
The interface recreates authentic Windows XP elements:
- Tahoma font family - Original XP system font
- Classic gradients - True-to-original title bar and button styles
- Proper borders - Inset/outset effects matching XP
- Color palette - Official XP blue theme colors
- Button behaviors - Hover and active states
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-preset - Commit changes:
git commit -am 'Add new preset' - Push to branch:
git push origin feature/new-preset - Submit a Pull Request