JSFiddle - React, Tailwind, and code Playground
HTML
<div class="loader">
<div class="dot center v-center">
<img class="logo" src="http://launcher-garden-minecraft.com/src/Media/images/logo.png">
</div>
</div>
CSS
body {
margin: 0;
padding: 0;
}
.v-center {
margin-top: 50vh !important;
transform: translateY(-50%);
}
.center {
margin: auto;
text-align: center;
}
.loader {
position: absolute;
background: blue;
width: 100%;
height: 100%;
z-index: 999999;
}
.loader .dot {
position: relative;
display: flex;
opacity: 0;
height: 0px;
width: 0px;
background-color: #272727;
border-radius: 50%;
z-index: 20;
animation: loader-dot 0.50s ease-in-out forwards;
}
.loader img.logo {
margin: auto;
opacity: 0;
height: 0px;
width: 0px;
z-index: 21;
animation: loader-img 0.5s ease-in-out 0.25s forwards;
}
@keyframes loader-dot {
0% {height: 0px;width: 0px;opacity: 1;}
75% {height: 130px;width: 130px;}
100% {height: 128px;width: 128px;opacity: 1;}
}
@keyframes loader-img {
0% {display: block;height: 0px;width: 0px;opacity: 1;}
30% {transform: rotate(15deg);}
60% {height: 66px;width: 66px;transform: rotate(-6deg);;}
100% {height: 64px;width: 64px;transform: rotate(0deg);opacity: 1;}
}