JSFiddle - React, Tailwind, and code Playground
by luka kupunia
HTML
<div class="box-1"></div>
<div class="box-2"></div>
<div class="text">
<div>თქვენ შიგ ხომ არ გაქვთ</div>
</div>
CSS
.box-1 {
width: 100%;
height: 100vh;
background: darkred;
top: 0;
left: 0;
position: fixed;
animation: a cubic-bezier(0.79, 0.01, 0.14, 1) 1s both;
transform-origin: bottom;
}
.box-2 {
width: 100%;
height: 100vh;
top: 0;
left: 0;
background: darkblue;
position: fixed;
animation: a cubic-bezier(0.79, 0.01, 0.14, 1) 1s both .2s;
transform-origin: bottom;;
}
@keyframes a {
from {
transform: scaleY(0);
}
to {
transform: scaleY(1);
}
}
.text {
overflow: hidden;
font-size: 60px;
color: white;
font-weight: bold;
width: 100%;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.text div {
transform: translate(0,100%);
animation: b both 1s 1s;
}
@keyframes b {
100% {
transform: translate(0,0) skew(20deg) rotate(20deg);
}
}