Halloween effects, minus the framework
Make your site haunted
in one script tag.
Screen-corner webs, blinking eyes, flying witches, a dropping spider and a rising tombstone. Zero dependencies, seasonal by default.
Switches on by itself every year, 18 October to 2 November. Install once and forget it.
- Zero dependencies
- Under 10 KB gzip
- Reduced-motion aware
- CDN + npm
Build your Halloween setup
This page is the preview: every change you make here happens on it right now, and the code on the right updates with it. Here the season is forced open so you can see everything. On your site it follows the real window.
Color
Credit link
Bottom of the page
Text
Border
Background
It sits at the bottom of the page, so it never covers a chat widget or banner.
To put it in your own footer, add data-halloween-badge-slot to
that element.
Active season
Default is 18 October to 2 November, every year. Change it only if you need another window. This changes the code you copy, not this page.
One snippet, library included. Paste it into the footer or custom-code field of your site or builder. That is the whole install.
For projects with a bundler. Three short steps.
1. Install
npm install halloween.js
2. Import it once in your entry file
import "halloween.js";
3. Turn it on
Works on any platform
Pick yours for click-by-click steps. Any builder with a custom-code field works.
Built to stay out of the way
Safe defaults, so it never gets in a visitor's way.
No layout changes
Ambient effects render in a fixed overlay layer. Nothing else on the page shifts or resizes.
Seasonal by default
Only runs in a window around Halloween, every year, unless you widen or override it.
Accessible motion
Respects prefers-reduced-motion live, without a page reload.
Open source, MIT licensed
Add your own Halloween effect or fix something you spotted. Starter issues are labelled.