mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Better snowfall
This commit is contained in:
@@ -1943,3 +1943,46 @@ nav ul li:hover, nav ul li.active {
|
||||
#search:-ms-input-placeholder, #searchFrontpage:-ms-input-placeholder { /* Internet Explorer 10+ */
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
* Source: https://codepen.io/NickyCDK/pen/AIonk
|
||||
*
|
||||
*/
|
||||
|
||||
#snow{
|
||||
background: none;
|
||||
font-family: Androgyne;
|
||||
background-image: url('http://www.wearewebstars.dk/codepen/img/s1.png'), url('http://www.wearewebstars.dk/codepen/img//s2.png'), url('http://www.wearewebstars.dk/codepen/img//s3.png');
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index:1;
|
||||
-webkit-animation: snow 10s linear infinite;
|
||||
-moz-animation: snow 10s linear infinite;
|
||||
-ms-animation: snow 10s linear infinite;
|
||||
animation: snow 10s linear infinite;
|
||||
}
|
||||
@keyframes snow {
|
||||
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
||||
50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
|
||||
100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
|
||||
}
|
||||
@-moz-keyframes snow {
|
||||
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
||||
50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
|
||||
100% {background-position: 400px 1000px, 200px 400px, 100px 300px;}
|
||||
}
|
||||
@-webkit-keyframes snow {
|
||||
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
||||
50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
|
||||
100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
|
||||
}
|
||||
@-ms-keyframes snow {
|
||||
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
||||
50% {background-position: 500px 500px, 100px 200px, -100px 150px;}
|
||||
100% {background-position: 500px 1000px, 200px 400px, -100px 300px;}
|
||||
}
|
||||
|
||||
4
static/dist/embed.min.js
vendored
4
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -373,5 +373,8 @@ function initfp(){
|
||||
window.location.href = 'http://etys.no';
|
||||
});
|
||||
|
||||
if(!Helper.mobilecheck() && Nochan.winter) Nochan.start_snowfall();
|
||||
if(!Helper.mobilecheck() && Nochan.winter) {
|
||||
$(".mega").prepend('<div id="snow"></div>');
|
||||
//Nochan.start_snowfall();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user