html,body{
height: 100%;
}
body{
overflow: hidden;
background: url(‘images/2.jpg’) no-repeat center/cover;
}
.snowfall-flakes:before,.snowfall-flakes:after{
content: ‘’;
position: absolute;
width: 10px;
height: 16px;
border-radius: 10px 10px 0 0;
background-color: red;
}
.snowfall-flakes:before{
transform: rotate(-45deg);
}
.snowfall-flakes:after{
transform: translateX(4.3px) rotate(45deg);
}
snowfall.jquery.js
(function(){var lastTime=0;var vendors=[‘webkit’,‘moz’];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+‘RequestAnimationFrame’];window.cancelAnimationFrame=window[vendors[x]+‘CancelAnimationFrame’]||window[vendors[x]+‘CancelRequestAnimationFrame’];}
if(!window.requestAnimationFrame)
window.requestAnimationFrame=function(callback,element){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};if(!window.cancelAnimationFrame)
window.cancelAnimationFrame=function(id){clearTimeout(id);};}());(function(KaTeX parse error: Expected '}', got 'EOF' at end of input: ){ .snowfall=function(element,options){var defaults={flakeCount:35,flakeColor:‘transparent’,flakePosition:‘absolute’,flakeIndex:999999,minSize:1,maxSize:2,minSpeed:1,maxSpeed:5,round:false,shadow:false,collection:false,collectionHeight:40,deviceorientation:false},options= . e x t e n d ( d e f a u l t s , o p t i o n s ) , r a n d o m = f u n c t i o n r a n d o m ( m i n , m a x ) r e t u r n M a t h . r o u n d ( m i n + M a t h . r a n d o m ( ) ∗ ( m a x − m i n ) ) ; ; .extend(defaults,options),random=function random(min,max){return Math.round(min+Math.random()*(max-min));}; .extend(