Fullscreen Snow Falling Effect With jQuery – Happy Christmas

In this post I am going to share cool jquery plugin (jQuery Snow Plugin) to add Fullscreen Snow Falling Effect With jQuery to wish Happy Christmas to your visitor on 25th of December. jQuery Snow Plugin is a simple jQuery snow plugin with customizable options and elements. Works with pure HTML elements. Can be used with FontAwesome or any other icon font as well as images.
snow-falling-effect


Integrate snow falling effect on your website

Libraries

Include latest jquery core lib with jquery.snow.js

<!--JS-->
<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src="jquery.snow.js"></script>

HTML

You can simply markup your html page with awesome messages or images.

<h1><b>Merry Christmas!</b></h1>

JS

Finally apply plugins snow falling effect to the whole page body.

jQuery.fn.snow({
 
  
  target: jQuery("body"),
 
  
  elements  : [
 
    { 
      html: '<i class="fa fa-snowflake-o" aria-hidden="true"></i>',
      color: '#ffffff'
    }
  ]
 
});




In order to compensate for not having a ratio mechanism built-in you can just add a proportionate number of copies to the elements array, see below:

var snowEffectInterval = jQuery.fn.snow({
  
  minSize: 10,
 
  
  maxSize: 20,
 
  
  fallTimeMultiplier: 20, 
 
  
  fallTimeDifference: 10000, 
 
  
  spawnInterval: 100, 
 
  
  target: jQuery("body"),
 
  
  elements	: [
 
    
    { 
      
      html: '<i class="fa fa-snowflake-o" aria-hidden="true"></i>',
      
      color: '#ffffff'
    },
 
    
    { 
      
      html: '<i class="fa fa-bell-o" aria-hidden="true"></i>',
      
      color: '#ed9b40'
    },
 
    
    { 
      
      html: '<i class="fa fa-snowflake-o" aria-hidden="true"></i>',
      
      color: '#ffffff'
    },
 
    
    {
      
      html: '<i class="fa fa-music" aria-hidden="true"></i>',
      
      color: '#cc2037'
    },
 
    
    { 
      
      html: '<i class="fa fa-snowflake-o" aria-hidden="true"></i>',
      
      color: '#ffffff'
    },
  ]
});

See live demo and download source code.

DEMO | DOWNLOAD

See official github repository for more information and follow for future updates. Don’t forget to read license for using above plugin in your commercial project.