Compare commits
2 Commits
10f8276ba1
...
3af9187c04
| Author | SHA1 | Date | |
|---|---|---|---|
| 3af9187c04 | |||
| 173afb6494 |
BIN
backgrounds/gm_construct/3.webp
Normal file
BIN
backgrounds/gm_construct/3.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 323 KiB |
BIN
backgrounds/gm_construct/4.jpg
Normal file
BIN
backgrounds/gm_construct/4.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
@@ -3,7 +3,9 @@
|
|||||||
"gm_construct": {
|
"gm_construct": {
|
||||||
"images": [
|
"images": [
|
||||||
"/backgrounds/gm_construct/1.jpg",
|
"/backgrounds/gm_construct/1.jpg",
|
||||||
"/backgrounds/gm_construct/2.jpg"
|
"/backgrounds/gm_construct/2.jpg",
|
||||||
|
"/backgrounds/gm_construct/3.webp",
|
||||||
|
"/backgrounds/gm_construct/4.jpg"
|
||||||
],
|
],
|
||||||
"music": [
|
"music": [
|
||||||
"/music/gm_construct/1.mp3"
|
"/music/gm_construct/1.mp3"
|
||||||
|
|||||||
12
effects.js
vendored
12
effects.js
vendored
@@ -22,6 +22,7 @@ async function GameDetails( servername, serverurl, mapname, maxplayers, steamid,
|
|||||||
|
|
||||||
let obj = document.createElement("img");
|
let obj = document.createElement("img");
|
||||||
obj.classList.add("bgImage");
|
obj.classList.add("bgImage");
|
||||||
|
if (i == 0) obj.style.opacity = 1;
|
||||||
obj.src = imgArray[i].src;
|
obj.src = imgArray[i].src;
|
||||||
document.getElementsByClassName("backgroundImages")[0].appendChild(obj);
|
document.getElementsByClassName("backgroundImages")[0].appendChild(obj);
|
||||||
}
|
}
|
||||||
@@ -34,15 +35,8 @@ async function GameDetails( servername, serverurl, mapname, maxplayers, steamid,
|
|||||||
|
|
||||||
let autoCycleImages = setInterval(() => {
|
let autoCycleImages = setInterval(() => {
|
||||||
|
|
||||||
if (bgObj[prevImage].classList.contains("blendInAnimation"))
|
bgObj[prevImage].style.opacity = 0;
|
||||||
bgObj[prevImage].classList.remove("blendInAnimation");
|
bgObj[currentImage].style.opacity = 1;
|
||||||
|
|
||||||
bgObj[prevImage].classList.add("blendOutAnimation");
|
|
||||||
|
|
||||||
if (bgObj[currentImage].classList.contains("blendOutAnimation"))
|
|
||||||
bgObj[currentImage].classList.remove("blendOutAnimation");
|
|
||||||
|
|
||||||
bgObj[currentImage].classList.add("blendInAnimation");
|
|
||||||
|
|
||||||
prevImage = currentImage;
|
prevImage = currentImage;
|
||||||
currentImage++;
|
currentImage++;
|
||||||
|
|||||||
17
style.css
17
style.css
@@ -20,6 +20,9 @@
|
|||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 2s;
|
||||||
|
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
@@ -35,18 +38,12 @@
|
|||||||
|
|
||||||
.blendInAnimation
|
.blendInAnimation
|
||||||
{
|
{
|
||||||
|
z-index: 10;
|
||||||
animation-fill-mode: forwards;
|
animation-fill-mode: forwards;
|
||||||
animation-name: blendIn;
|
animation-name: blendIn;
|
||||||
animation-duration: 2s;
|
animation-duration: 2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blendOutAnimation
|
|
||||||
{
|
|
||||||
animation-fill-mode: forwards;
|
|
||||||
animation-name: blendOut;
|
|
||||||
animation-duration: 2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mapName
|
.mapName
|
||||||
{
|
{
|
||||||
background-color: rgba(0, 0, 0, 0.4);
|
background-color: rgba(0, 0, 0, 0.4);
|
||||||
@@ -101,9 +98,3 @@
|
|||||||
from {opacity: 1;}
|
from {opacity: 1;}
|
||||||
to {opacity: 0;}
|
to {opacity: 0;}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blendOut
|
|
||||||
{
|
|
||||||
from {opacity: 0;}
|
|
||||||
to {opacity: 1;}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user