📜 ⬆️ ⬇️

jQuery SnowFall - site snowfall

Less than a week is left before the New Year, and there is still no corresponding mood. And this evening I decided to make myself a New Year mood with the help of the jQuery SnowFall plugin.

Searched by query: "Snow on the site + javascript ". I myself was too lazy to write, and I decided to use a ready-made script so that it would be snowing on the site. And then I got jQuery SnowFall. A very simple jQuery plugin with the minimum required number of settings.

Connection
It's all as usual
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="snowfall.jquery.js"></script> 

Using
 $(document).snowfall(); //-  =) 

Options
The options are pretty commonplace. I liked the option collection, which allows you to save snowflakes on these elements.
 flakeCount : 35, //    flakeColor: '#ffffff', //  flakeIndex: 999999, //CSS z-index  minSize: 1, //   maxSize: 3, //   minSpeed: 2, //    maxSpeed: 3, //    round: false, //  – true,  - false shadow: false, //   collection: '.element' //           


Example page
And then the plugin itself
')
Holiday greetings!

Source: https://habr.com/ru/post/135348/


All Articles