feat: add drapery
This commit is contained in:
parent
6740d99dcc
commit
7604cb1fe5
@ -5,6 +5,7 @@
|
|||||||
import Maskenball from '$lib/components/maskenball.svelte';
|
import Maskenball from '$lib/components/maskenball.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="drapery" />
|
||||||
<img class="curtain-right" src="/curtain.png" />
|
<img class="curtain-right" src="/curtain.png" />
|
||||||
<img class="curtain-left" src="/curtain.png" />
|
<img class="curtain-left" src="/curtain.png" />
|
||||||
<Confetti />
|
<Confetti />
|
||||||
@ -20,6 +21,30 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-top: 50px;
|
margin-top: 50px;
|
||||||
}
|
}
|
||||||
|
.drapery {
|
||||||
|
background-image: url('/drapery.png');
|
||||||
|
position: absolute;
|
||||||
|
top: -50px;
|
||||||
|
left: 0px;
|
||||||
|
width: 100vw;
|
||||||
|
height: 300px;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-size: 500px;
|
||||||
|
z-index: 3;
|
||||||
|
filter: brightness(1.2) contrast(1.2) saturate(1.3) hue-rotate(-15deg)
|
||||||
|
drop-shadow(0px 0px 50px black);
|
||||||
|
animation: draperyIn 2s 2s ease forwards;
|
||||||
|
animation-delay: 2s;
|
||||||
|
transform: translateY(-500px) scaleY(0);
|
||||||
|
}
|
||||||
|
@keyframes draperyIn {
|
||||||
|
from {
|
||||||
|
transform: translateY(-500px) scaleY(0);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: translateY(0px) scaleY(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
img.curtain-right {
|
img.curtain-right {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: -30px;
|
top: -30px;
|
||||||
@ -28,12 +53,12 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
filter: brightness(0.8) contrast(1.1) saturate(0.6);
|
filter: brightness(0.8) contrast(1.1) saturate(0.6);
|
||||||
animation: moveInRight 2s ease forwards;
|
animation: moveInRight 2s ease forwards;
|
||||||
animation-delay: 0.5s;
|
animation-delay: 2s;
|
||||||
transform: translateX(100%);
|
transform: translateX(120%) rotate(-10deg);
|
||||||
}
|
}
|
||||||
@keyframes moveInRight {
|
@keyframes moveInRight {
|
||||||
from {
|
from {
|
||||||
transform: translateX(100%) rotate(-10deg);
|
transform: translateX(120%) rotate(-10deg);
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
transform: translateX(15%) rotate(0deg);
|
transform: translateX(15%) rotate(0deg);
|
||||||
@ -47,15 +72,14 @@
|
|||||||
width: 400px;
|
width: 400px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
filter: brightness(0.8) contrast(1.1) saturate(0.6);
|
filter: brightness(0.8) contrast(1.1) saturate(0.6);
|
||||||
|
|
||||||
animation: moveInLeft 2s ease forwards;
|
animation: moveInLeft 2s ease forwards;
|
||||||
animation-delay: 0.5s;
|
animation-delay: 2s;
|
||||||
transform: translateX(-100%);
|
transform: translateX(-120%) rotate(10deg) scaleX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes moveInLeft {
|
@keyframes moveInLeft {
|
||||||
from {
|
from {
|
||||||
transform: translateX(-100%) rotate(10deg) scaleX(-1);
|
transform: translateX(-120%) rotate(10deg) scaleX(-1);
|
||||||
}
|
}
|
||||||
to {
|
to {
|
||||||
transform: translateX(-15%) rotate(0deg) scaleX(-1);
|
transform: translateX(-15%) rotate(0deg) scaleX(-1);
|
||||||
|
BIN
static/drapery.png
Executable file
BIN
static/drapery.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 520 KiB |
Loading…
Reference in New Issue
Block a user