Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions public/css/splash.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@import url('https://fonts.googleapis.com/css?family=Staatliches');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Importing fonts in CSS isn't a good option ;)


body {
margin: 0;
font-family: 'Staatliches', cursive;
}

.loader {
position: fixed;
left: 0;
top: 0;
background: #e6e2dd;
width: 100%;
height: 100vh;
animation: backgroundChange .5s linear 3.5s forwards;
}

.load-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: absolute;
font-size: 10vmax;
width: fit-content;
display: flex;
animation: colorChange .5s linear 3.5s forwards;
}

.loaded-text {
transform: scale(1.5);
animation: scaleText .5s linear 1s forwards;
}

.loading-text {
width: 0;
color: #d48369;
overflow: hidden;
animation: expand .5s linear 2s forwards;
}

@keyframes scaleText {
from {transform: scale(1.5)}
to {transform: scale(1)}
}

@keyframes expand {
from {width: 0;}
to {width: 35vmax;}
}

@keyframes backgroundChange {
from {background-color: #e6e2dd}
to {background-color: #373a36}
}

@keyframes colorChange {
from {color: #373a36}
to {color: #e6e2dd}
}