forked from mico/idle_moloch
Added village scene
This commit is contained in:
parent
37ac6c22c6
commit
bc0efd842e
BIN
app/public/background/bonfire.png
Normal file
BIN
app/public/background/bonfire.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 55 KiB |
BIN
app/public/background/village.png
Normal file
BIN
app/public/background/village.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 616 KiB |
@ -67,9 +67,19 @@
|
||||
}
|
||||
.village {
|
||||
background-image: url("/background/village.png");
|
||||
height: 540px;
|
||||
bottom: 22px;
|
||||
}
|
||||
.bonfire {
|
||||
background-image: url("/background/bonfire.png");
|
||||
bottom: 100px;
|
||||
left: 184px;
|
||||
width: 175px;
|
||||
height: 193px;
|
||||
transform-origin: bottom center;
|
||||
animation:
|
||||
bonfire 12s linear infinite,
|
||||
bonfire_skew 5s infinite linear;
|
||||
}
|
||||
|
||||
@keyframes scrollBackground {
|
||||
@ -119,3 +129,70 @@
|
||||
filter: saturate(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bonfire {
|
||||
5% {
|
||||
filter: saturate(3);
|
||||
}
|
||||
10% {
|
||||
filter: saturate(1);
|
||||
}
|
||||
15% {
|
||||
filter: saturate(3);
|
||||
}
|
||||
25% {
|
||||
filter: saturate(1);
|
||||
}
|
||||
35% {
|
||||
filter: saturate(5);
|
||||
}
|
||||
50% {
|
||||
filter: saturate(1);
|
||||
}
|
||||
55% {
|
||||
filter: saturate(3);
|
||||
}
|
||||
85% {
|
||||
filter: saturate(1);
|
||||
}
|
||||
90% {
|
||||
filter: saturate(2);
|
||||
}
|
||||
100% {
|
||||
filter: saturate(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes bonfire_skew {
|
||||
0%,
|
||||
100% {
|
||||
transform: scale(1, 1) skew(0deg, 0deg);
|
||||
}
|
||||
10% {
|
||||
transform: scale(1.01, 1.01) skew(0.5deg, -0.5deg);
|
||||
}
|
||||
20% {
|
||||
transform: scale(1.02, 1.02) skew(1deg, -1deg);
|
||||
}
|
||||
30% {
|
||||
transform: scale(1, 1.03) skew(0deg, 0deg);
|
||||
}
|
||||
40% {
|
||||
transform: scale(1.01, 1.04) skew(0.5deg, -1.5deg);
|
||||
}
|
||||
50% {
|
||||
transform: scale(1, 1.03) skew(0.5deg, -0.5deg);
|
||||
}
|
||||
60% {
|
||||
transform: scale(1.01, 1.04) skew(0deg, 0deg);
|
||||
}
|
||||
70% {
|
||||
transform: scale(1.02, 1.01) skew(1deg, -1deg);
|
||||
}
|
||||
80% {
|
||||
transform: scale(1, 1.02) skew(-0.5deg, 0.5deg);
|
||||
}
|
||||
90% {
|
||||
transform: scale(1.02, 1.03) skew(0deg, -1deg);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user