.text-effect{
color: #fff;
font-family: 'Patua One', cursive;
font-size: 100px;
font-weight: 700;
text-align: center;
position: relative;
}
.text-effect span{
margin: 0 1px;
display: inline-block;
animation: loading-text 2s infinite ease-in-out;
}
.text-effect span:nth-child(1){ animation-delay: 0.9s; }
.text-effect span:nth-child(2){ animation-delay: 1s; }
.text-effect span:nth-child(3){ animation-delay: 1.1s; }
.text-effect span:nth-child(4){ animation-delay: 1.2s; }
.text-effect span:nth-child(5){ animation-delay: 1.3s; }
.text-effect span:nth-child(6){ animation-delay: 1.4s; }
.text-effect span:nth-child(7){ animation-delay: 1.5s; }
.text-effect span:nth-child(8){ animation-delay: 1.6s; }
.text-effect span:nth-child(9){ animation-delay: 1.7s; }
.text-effect span:nth-child(10){ animation-delay: 1.8s; }
@keyframes loading-text{
0%{
transform: translateY(0%);
opacity: 1;
}
20%{
transform: translateY(-60%);
opacity: 1;
}
40%{
transform: translateY(-100%);
opacity: 0;
}
60%{ opacity: 0; }
80%{ opacity: 0; }
100%{ opacity: 1; }
}
@media only screen and (max-width: 990px){
.text-effect{ font-size: 70px; }
}
@media only screen and (max-width: 767px){
.text-effect{ font-size: 60px; }
}
@media only screen and (max-width: 576px){
.text-effect{ font-size: 40px; }
}