Step 1Pick a tree
Step 2Set it up
This is the real thing running on a pretend page. Travel through the season with the timeline, and click the tree for snow.
On show
fromat
untilat
Any dates and times you like. It repeats every year, by each visitor's own clock.
Step 3Copy the code
Paste it just before </body>, or into the "custom code" or "footer scripts" box of your site builder.
What it does through the season
You paste it once. The tree keeps its own calendar, by each visitor's date.
- The tree goes upIt appears in its corner, lights on. December 1 unless you pick another day.
- It counts the days"Christmas in 12 days!", in the visitor's language.
- Presents pile upA new one appears under the tree on each of these days.
- Santa flies byA little sleigh flies over the tree, once per visit.
- Merry ChristmasThe presents are opened, the tree sparkles and snow falls on it all day.
- Happy New YearThe greeting changes for the new year.
- Back in the atticGone until next year. January 6 is the last day unless you pick another.
What you are pasting
- No tracking, no cookies, no dependencies. The self-contained snippet makes no network requests: the drawing is inside it.
- Greets visitors in their language.
- Isolated in a shadow root. Your CSS cannot bend it and it cannot touch yours.
- Polite. Nothing moves under
prefers-reduced-motion. It shrinks on phones and is hidden in print. - Original drawings. Plain SVG you can open, recolor and keep.
- MIT licensed. Free for personal and commercial sites.