Skip to content

sgnl/xue.js

Repository files navigation

xue.js

add a pixel snowflake effect to your DOM elements.

xue js-snowfall

Features

  • add pixel snow to any element on your webpage
  • target body to have it snow over your entire web page
  • target individual elements to decorate your web page
  • small! (4.11 kB)

Installation

  • have yarn installed: follow directions here
  • clone and run yarn install && npm run build
  • use files located in dist/

Usage

  • window.Xue or Xue will be available globally after including one of the files in dist/ into your html via <script> or bundling tool
Xue.init({selector: '.banner-to-have-snowfall'});

Why

why not

what does xue mean? It's loosely "snow" in the Chinese language

Contribute

PRs are welcomed

Releases

No releases published

Packages

No packages published