How to add a snow effect to your website
A gentle snowfall is the quickest way to make a website feel like Christmas. This guide shows the no-code way to add falling snow to any site in about a minute (free), how it compares with a pure-CSS snow effect, and how to make sure the snow is visible on white pages and switches itself off after the holidays.
You'll need your free key first. It takes a minute and arrives by email.
Step by step
Pick a snow theme
Open worldofaiagents.com/christmas and try Snowfall (just snow) or Winter Wonderland (snow plus twinkling lights and Santa). The page you are on is running the real widget.
Get your free code
Register your website at worldofaiagents.com/christmas, verify your email with the 6-digit code, and copy the script tag from the email.
Paste it into your site
Paste the script tag just before
</body>in your HTML, or into your site builder's custom code / footer code box. See the platform guides below.Check your site
Open your website. Snow starts falling straight away, drifts with the wind, swirls away from the mouse and piles up along the bottom of the screen.
Your code looks like this
<script async src="https://worldofaiagents.com/christmas/w.js" data-key="XM-YOURKEY" data-style="wonderland" data-until="2027-01-07"></script>
Change data-style to wonderland, snowfall, lights, sleigh or icicles whenever you like. data-until switches it off after a date (7 January by default). Optional: data-cursor="off" removes the stardust cursor, data-drift="off" stops snow piling up, data-greeting="holidays" says "Happy holidays", and data-position="right" moves the on/off button.
CSS snow vs. a canvas snow widget
You can make simple falling snow with CSS keyframes, but it has limits. A canvas widget like Christmas Lights draws every flake in one layer, so it can do things CSS can't:
- Speed: one canvas instead of hundreds of animated elements, so no layout work for the browser and no layout shift.
- Snow that piles up: flakes land and build a soft drift along the bottom of the screen.
- Wind and interaction: gusts of wind, and snow that swirls away from the mouse or finger.
- Visible on white: on light pages each flake gets a soft blue shadow so it doesn't disappear.
- Accessibility: visitors with reduced motion turned on see still snow instead of animation, and anyone can switch it off.
Make the snow show on a white website
Pure white snow on a white page is invisible. Christmas Lights checks your page background and, on light pages, draws flakes, crystals and the drift with a subtle blue shadow. If your site switches between light and dark, you can force a mode with data-theme="light" or data-theme="dark".
Switch the snow off after Christmas
Your code includes data-until="2027-01-07", so the snow stops by itself after 7 January. Change the date or delete the attribute to keep it longer. To stop snow piling up at the bottom (for example over a cookie bar), add data-drift="off".
Troubleshooting
- I can't see the snow
- Check the browser console for a message from Christmas Lights. "This key is registered for…" means the key was registered for a different domain; register the domain visitors use. Also clear any page cache.
- The snow covers my cookie banner
- The snow never blocks clicks, but if the drift sits over a bottom banner visually, add
data-drift="off".
Questions
How do I add falling snow to my website without a plugin?
Paste one script tag from worldofaiagents.com/christmas into your site. It needs no plugin, no jQuery and no other dependencies, and works on any website or site builder that allows custom code.
Is a snow effect bad for website performance?
Not with a canvas widget. Christmas Lights is about 14 KB compressed, loads after your page, causes no layout shift, pauses in hidden tabs and lowers its resolution on slow devices.
Can I add snow to just one page?
Yes. Add the script tag only to the pages you want, such as your home page.
Let it snow on your website today
The snow on this page is the real widget. Try every theme on the main page.
Get my free Christmas lights 🎄Other guides
- Animated Christmas lights for your website
- Add falling snow and Christmas lights to WordPress
- Add a snow effect and Christmas lights to Shopify
- Add a snow effect to your Wix website
- Add a snow effect to your Squarespace website
- Add a snow effect to your Webflow site
- Add a snow effect to your Blogger blog
- Add a snow effect with Google Tag Manager
- Christmas snowfall for React, Next.js and Vue