console
window.onload = function(){
var oSnow = document.querySelector('#snow');
function obj(){};
obj.prototype.draw = function(o){
var speed = 0;
var startPosLeft = Math.ceil(Math.random()*document.documentElement.clientWidth);
o.style.opacity = (Math.ceil(Math.random()*3)+7)/10;
o.style.left = startPosLeft + 'px';
o.style.color = '#fff';
setInterval(function(){
if(speed<document.documentElement.clientHeight){
o.style.top = speed + 'px';
o.style.left=startPosLeft+Math.ceil(Math.random()*10)+'px';
speed+=10;
}else{
o.style.display= 'none'
}
},500)
};
setInterval(function(){
var oBox = document.createElement('div');
oBox.innerHTML = '*';
oBox.style.fontSize = 30 +'px'
oBox.style.position = 'absolute';
oSnow.appendChild(oBox);
var obj1 = new obj();
obj1.draw(oBox)
},1000)
}
<div id="snow" style="position: relative;"></div>