Beautiful, lightweight JavaScript animations to bring holiday cheer to your website.
Visit our interactive demo: christmas-scripts.arnaullopart.com
The website features:
- ✨ Live demonstrations of all Christmas animations in action
- 🎮 Interactive control panel to test and customize each effect in real-time
- 📋 Auto-generated code snippets with your custom configurations
- 🎯 Visual examples showing all available parameters and options
- 📱 Fully responsive playground that works on all devices
Use the playground to experiment with different settings, test combinations of effects, and generate the exact script tags you need for your website!
- Overview
- Quick Start
- Available Scripts
- Installation
- Configuration
- Browser Support
- Legal & Compliance
- Copyright & License
Christmas Scripts is a collection of festive JavaScript animations that can be easily added to any website. Each script is:
- Lightweight: Minimal performance impact
- Easy to integrate: Just add a single script tag
- Customizable: Configure via URL parameters
- Date-aware: Automatically show/hide based on date ranges
- Theme-aware: Auto-detection of light/dark themes (where applicable)
- No dependencies: Pure vanilla JavaScript
💡 Try it live! Visit christmas-scripts.arnaullopart.com to see all effects in action and use the interactive playground to generate custom code snippets for your website.
Add any of these scripts to your HTML:
<!-- Snowflakes -->
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-snowflakes.min.js?startDate=12-01&endDate=01-15"></script>
<!-- Christmas Lights -->
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-lights.min.js?startDate=12-01&endDate=01-15"></script>
<!-- Garlands -->
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-garlands.min.js?startDate=12-01&endDate=01-15"></script>
<!-- Santa Claus -->
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-santa-claus.min.js?startDate=12-01&endDate=01-15"></script>Create beautiful falling snowflakes across your entire page with automatic theme detection.
Script URL:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-snowflakes.min.js"></script>Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
startDate |
String (MM-DD) | "12-01" |
When to start showing snowflakes |
endDate |
String (MM-DD) | "01-15" |
When to stop showing snowflakes |
theme |
String | auto |
Color scheme: "light", "dark", or null for auto-detection |
Example:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-snowflakes.min.js?startDate=12-01&endDate=01-15&theme=dark"></script>Add colorful twinkling lights around the borders of your webpage.
Script URL:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-lights.min.js"></script>Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
startDate |
String (MM-DD) | "12-01" |
When to start showing lights |
endDate |
String (MM-DD) | "01-15" |
When to stop showing lights |
theme |
String | auto |
Color scheme: "light", "dark", or null for auto-detection |
positions |
String | "top,right,bottom,left" |
Comma-separated border positions |
Example:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-lights.min.js?startDate=12-01&endDate=01-15&positions=top,bottom&theme=dark"></script>Decorate your page with festive garlands that gently sway and breathe.
Script URL:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-garlands.min.js"></script>Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
startDate |
String (MM-DD) | "12-01" |
When to start showing garlands |
endDate |
String (MM-DD) | "01-15" |
When to stop showing garlands |
positions |
String | "top" |
Comma-separated positions: "top", "bottom" |
type |
String | "garlands" |
Decoration style: "garlands", "garlands2", "garlands3", "trees", or "gingerbread" |
fullsize |
Boolean | false |
Set to "true" or "1" for full-width garlands |
Example:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-garlands.min.js?startDate=12-01&endDate=01-15&positions=top,bottom&type=garlands&fullsize=false"></script>Watch Santa fly across your screen in his sleigh, spreading holiday joy!
Script URL:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-santa-claus.min.js"></script>Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
startDate |
String (MM-DD) | "12-01" |
When to start Santa's flights |
endDate |
String (MM-DD) | "01-15" |
When to stop Santa's flights |
onlyHorizontalMovements |
Boolean | false |
Set to "true" or "1" for horizontal-only flight |
audioEffectsEnabled |
Boolean | false |
Set to "true" or "1" to enable jingle bell sounds |
Example:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-santa-claus.min.js?startDate=12-01&endDate=01-15&onlyHorizontalMovements=false&audioEffectsEnabled=true"></script>Simply include the script tags in your HTML:
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-snowflakes.min.js"></script>You can combine multiple effects on the same page:
<!-- Add snowflakes and lights together -->
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-snowflakes.min.js?startDate=12-01&endDate=01-15"></script>
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-lights.min.js?startDate=12-01&endDate=01-15&positions=top,bottom"></script>
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-garlands.min.js?startDate=12-01&endDate=01-15&positions=top"></script>
<script defer src="https://christmas-scripts.arnaullopart.com/christmas-santa-claus.min.js?startDate=12-01&endDate=01-15"></script>- Add scripts before the closing
</body>tag or in the<head>with thedeferattribute - Scripts will automatically initialize when the page loads
- No additional configuration or initialization code is required
All date parameters use the MM-DD format (e.g., "12-01" for December 1st, "01-15" for January 15th).
The scripts will only display effects during the specified date range. If the current date is outside the range, the effects won't be displayed.
For snowflakes and lights, the scripts can automatically detect your website's theme:
- Auto-detection: Leave the
themeparameter empty or omit it - Manual override: Set
theme=lightortheme=dark
The auto-detection analyzes the background color of your page to determine the appropriate effect colors.
Boolean parameters can be set using:
true,"true", or"1"for truefalse,"false", or"0"for false
Examples:
<!-- Enable audio -->
?audioEffectsEnabled=true
<!-- Enable fullsize garlands -->
?fullsize=1These scripts work in all modern browsers:
- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Opera (latest)
Minimum Requirements:
- ES6 JavaScript support
- CSS3 animations
- Canvas API (for snowflakes)
Mobile Support:
- Fully responsive
- Touch-friendly
- Optimized for performance on mobile devices
We take your privacy and legal rights seriously. Please review our legal documentation:
- Privacy Policy - How we collect and use information
- Terms of Service - Usage terms and conditions
- Cookie Policy - How we use cookies on our website
Important Notes:
- Our JavaScript libraries do NOT use cookies or track users
- The scripts run entirely client-side in the user's browser
- No personal data is collected by the scripts
- Website analytics apply only to christmas-scripts.arnaullopart.com
Copyright © 2025 Arnau Llopart. All Rights Reserved.
This software is licensed under a Proprietary License. See the LICENSE.md file for complete terms and conditions.
YOU MAY:
- ✅ Use the Software on any website or application
- ✅ Include the Software in commercial projects
- ✅ Use the Software for personal or business purposes
- ✅ Implement via the official CDN for unlimited projects
YOU MAY NOT:
- ❌ Copy, modify, or create derivative works of the Software
- ❌ Distribute, sublicense, or sell copies of the Software
- ❌ Host the Software on your own servers or CDNs
- ❌ Remove or alter any copyright notices or attributions
For complete terms, conditions, warranties, and limitations of liability, please read the full LICENSE.md file.
For licensing inquiries or permissions beyond this license, please contact: Arnau Llopart
Arnau Llopart
- Website: christmas-scripts.arnaullopart.com
- GitHub: @arnaullfe
- LinkedIn: arnau-llopart
- Instagram: @arnau_llopart
- YouTube: @ArnauLlopart
- X (Twitter): @arnaullfe
Made with ❤️ and holiday spirit by Arnau Llopart • Enjoy the festive season! 🎄