mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Smoother snow
This commit is contained in:
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -184,12 +184,12 @@ var Nochan = {
|
|||||||
parent.appendChild(snow);
|
parent.appendChild(snow);
|
||||||
Nochan.fall_snow(snow);
|
Nochan.fall_snow(snow);
|
||||||
Nochan.start_snowfall();
|
Nochan.start_snowfall();
|
||||||
}, 700);
|
}, 800);
|
||||||
},
|
},
|
||||||
|
|
||||||
fall_snow: function(corn){
|
fall_snow: function(corn){
|
||||||
corn.style.top = (parseInt(corn.style.top.replace("px", ""))+2)+"px";
|
corn.style.top = (parseInt(corn.style.top.replace("px", ""))+2)+"px";
|
||||||
if(parseInt(corn.style.top.replace("px", "")) < document.getElementById("mega-background").offsetHeight-5){
|
if(parseInt(corn.style.top.replace("px", "")) < document.getElementById("mega-background").offsetHeight-2.5){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
Nochan.fall_snow(corn);
|
Nochan.fall_snow(corn);
|
||||||
},50);
|
},50);
|
||||||
|
|||||||
Reference in New Issue
Block a user