Description
Chris TDL Snowfall brings a smooth, elegant, and high-performance snow animation to your WordPress website. Designed using the vanilla HTML5 Canvas 2D API, it delivers seamless 60 FPS rendering without taxing CPU or GPU resources and without external library dependencies.
Key features:
- Zero external dependencies: Pure vanilla JavaScript and HTML5 Canvas 2D rendering.
- Customizable density and speed: Adjust snowflake density (10 to 500) and fall speed multiplier (0.1 to 5.0) directly from the WordPress dashboard.
- Accessibility friendly: Automatically respects the
prefers-reduced-motionaccessibility preference and marks the decorative canvas witharia-hidden="true". - Performance optimized: Uses
deferscript loading, pauses automatically when the browser tab is hidden, supports client-side navigation (turbo:load), and cleans up all options on uninstall.
Installation
- Upload the
chris-tdl-snowfallfolder to the/wp-content/plugins/directory, or install the plugin directly through the WordPress Plugins screen. - Activate the plugin through the Plugins screen in WordPress.
- Navigate to Snowfall in your WordPress admin sidebar to enable or customize the snowfall density, speed, and accessibility settings.
FAQ
Does this plugin load external scripts or fonts?
No. All assets are bundled locally within the plugin and use native browser APIs with zero external requests.
Will the snowfall animation interfere with clicking buttons or links on my site?
No. The overlay canvas uses pointer-events: none, so all clicks, scrolling, and form interactions pass straight through to your page.
Does it work with caching and optimization plugins?
Yes. The script is loaded cleanly with defer and passes its settings via wp_localize_script().
Changelog
1.0.9
- Added seamless re-initialization on
turbo:loadfor client-side page navigation engines and prevented duplicate global event listeners. - Stopped the animation loop cleanly if the canvas element is detached from the DOM.
- Bumped plugin version,
CHRIS_TDL_SNOWFALL_VERSION, andStable tagto1.0.9.
1.0.8
- Updated WordPress compatibility headers (
Requires at least: 6.3,Tested up to: 7.1) and aligned archive naming with the plugin slug. - Added server-side range clamping for flake density (10–500) and speed (0.1–5.0).
- Added accessibility support for
prefers-reduced-motionandaria-hidden="true"on the canvas. - Added automatic animation pause when the browser tab is hidden, dynamic flake resizing on viewport changes, a direct Settings link on the Plugins page, and clean
uninstall.phpoption cleanup.
1.0.7
- Updated version header, stable tag, and enqueued asset cache-buster.
- Cleaned directory tree structure and removed nested subfolders/metadata.
1.0.6
- Updated sidebar menu label to “Snowfall”.
- Fixed non-breaking space encoding issues.