.text-effect{
color: #d88900;
font-family: 'Rubik Dirt', cursive;
font-size: 100px;
text-align: center;
}
.text-effect span{
display: inline-block;
position: relative;
z-index: 1;
}
.text-effect span:before{
content:attr(data-content);
color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
animation: falls 1s ease forwards infinite;
}
.text-effect span:nth-child(1):before{ animation: falls 0.9s ease 0.2s forwards infinite; }
.text-effect span:nth-child(3):before{ animation: falls 1s ease 0.3s forwards infinite;}
.text-effect span:nth-child(5):before{ animation: falls 1s ease 0.4s forwards infinite;}
.text-effect span:nth-child(7):before{ animation: falls 1s ease 0.5s forwards infinite;}
.text-effect span:nth-child(9):before{ animation: falls 1s ease 0.6s forwards infinite;}
@keyframes falls{
0%{
opacity: 0;
top: 0;
}
20%{ opacity: 1; }
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; }
}