22/invite/style.scss

60 lines
946 B
SCSS

$foreground: #FFFFFF;
$background: #000000;
$animation-length: 3s;
$animation-delay: $animation-length - 0.3;
* {
box-sizing: border-box;
}
body {
justify-content: center;
align-items: center;
background: $background;
color: $foreground;
font-family: Sans-Serif;
margin:0;
padding:0;
overflow:hidden;
}
.container {
height:100vh;
width: 100vw;
@for $child from 0 to 3 {
>:nth-child(#{$child+1}) {
animation-delay: $animation-delay*$child;
animation-duration: $animation-length;
animation-name: slide-in;
animation-fill-mode: both;
}
}
}
.slide {
position: absolute;
height:100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
@keyframes slide-in {
0% {
transform: translateY(-50px);
opacity: 0;
}
10%, 90% {
transform: translateY(0);
opacity: 1;
}
100% {
transform: translateY(-50px);
opacity: 0;
}
}