html, body {
    min-height: 100%;
}

body {
    background: url(https://www.elementaryos-fr.org/wp-content/uploads/2013/09/wallpaper-1923233.jpg) 50% 50% / cover no-repeat;
}
View Compiled
$(document).snowfall();

$(window).resize(() => {
    $(document).snowfall('clear');
    $(document).snowfall();
});
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/JQuery-Snowfall/1.7.4/snowfall.jquery.min.js