.text-effect{
color: #744ace;
font-family: 'Patua One', cursive;
font-size: 100px;
font-weight: 400;
text-align: center;
}
.text-effect span{
display: inline-block;
opacity: 0;
transform: rotateX(-90deg);
position: relative;
top: -100px;
animation: animate 1.2s ease-in-out infinite;
}
.text-effect span:nth-child(1) { animation-delay: 1.2s; }
.text-effect span:nth-child(2) { animation-delay: 1.3s; }
.text-effect span:nth-child(3) { animation-delay: 1.4s;}
.text-effect span:nth-child(4) { animation-delay: 1.5s; }
.text-effect span:nth-child(5) { animation-delay: 1.6s; }
.text-effect span:nth-child(6) { animation-delay: 1.7s; }
.text-effect span:nth-child(7) { animation-delay: 1.8s; }
.text-effect span:nth-child(8) { animation-delay: 1.9s; }
.text-effect span:nth-child(9) { animation-delay: 2s; }
.text-effect span:nth-child(10){ animation-delay: 2.1s; }
@keyframes animate{
10%{ opacity: 0.5; }
20%{
opacity: 1;
transform: rotateX(-360deg);
top: 0;
}
80%{
opacity: 1;
transform: rotateX(-360deg);
top: 0;
}
90%{ opacity: 0.5; }
100%{
opacity: 0;
top: 100px;
}
}
@media only screen and (max-width: 990px){
.text-effect{ font-size: 80px; }
}
@media only screen and (max-width: 767px){
.text-effect{ font-size: 60px; }
}
@media only screen and (max-width: 576px){
.text-effect{ font-size: 45px; }
}