All Projects → Canop → snow

Canop / snow

Licence: other
Make it snow on your web site

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Labels

Projects that are alternatives of or similar to snow

snowworker
Website snow! It'll settle on anything that has a .rooftop class.
Stars: ✭ 25 (+25%)
Mutual labels:  snow
openskimap.org
The front end for OpenSkiMap.org.
Stars: ✭ 23 (+15%)
Mutual labels:  snow
vue-snowf
Snowfall component for Vue.js, let it snow on your page! ❄ demo: https://fuxy526.github.io/snowf/
Stars: ✭ 38 (+90%)
Mutual labels:  snow
SnowTrail
No description or website provided.
Stars: ✭ 22 (+10%)
Mutual labels:  snow
react-native-confetti
React Native component to show confetti
Stars: ✭ 46 (+130%)
Mutual labels:  snow
Canvas Confetti
🎉 on-demand confetti gun
Stars: ✭ 2,394 (+11870%)
Mutual labels:  snow

snow

Make it snow on your web site.

Live Demonstration

  • Snow cumulates at the bottom of the screen
  • Customizable: from a light snow to a blizzard
  • Dynamically controllable: start new snow falls and stop them
  • Don't mess with the DOM: only one canvas is added
  • Light and with no dependency

Chat on Miaou Chat on Miaou

Usage

Import the script:

<script src=snow.js></script>

Then call the start function:

snow.start();

or with some parameters:

snow.start({
flakeCount: 4000,
stickingRatio: 0.55,
wind: -7
});

You can ask the snow to gently stop:

snow.stop();

Options

  • flakeCount: number of flakes. Default: 400
  • maxRadius: max radius of flakes. Default: 1.7
  • wind: wind speed, can be positive (towards the right) or negative. Default: 0. Reasonnable winds are lower than 20.
  • color: snow color. Default: #ddf
  • minSpeed: vertical minimal speed. Default: 1
  • maxSpeed: vertical maximal speed. Default: 4.2
  • stickingRatio: how much the snow sticks to the ground. Default: .4
  • maxHeightRatio: at what part of the screen height does snow stop accumulating. Default: .25

Install with npm

npm i Canop/snow

License

MIT

Copyright (c) 2016 Denys Séguret <http://dystroy.org/>

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].