.demo{ background: linear-gradient(120deg, #7bc6cc, #be93c5); }
.text-effect{
color: rgba(0, 0, 0, 0.2);
font-family: 'Montserrat', sans-serif;
font-size: 100px;
font-weight: 700;
text-align: center;
position: relative;
}
.text-effect span{
display: inline-block;
position: relative;
}
.text-effect span:after{
content: attr(data-content);
color: #fff;
opacity: 0;
transform: scale(1.5);
position: absolute;
top: 0;
left: 0;
animation: animate 3s infinite;
}
.text-effect span:nth-child(1):after{ animation-delay: 0.1s; }
.text-effect span:nth-child(2):after{ animation-delay: 0.2s; }
.text-effect span:nth-child(3):after{ animation-delay: 0.3s; }
.text-effect span:nth-child(4):after{ animation-delay: 0.4s; }
.text-effect span:nth-child(5):after{ animation-delay: 0.5s; }
.text-effect span:nth-child(6):after{ animation-delay: 0.6s; }
.text-effect span:nth-child(7):after{ animation-delay: 0.7s; }
.text-effect span:nth-child(8):after{ animation-delay: 0.8s; }
.text-effect span:nth-child(9):after{ animation-delay: 0.9s; }
.text-effect span:nth-child(10):after{ animation-delay: 1s; }
@keyframes animate{
0%, 75%, 100%{
transform: scale(1.5);
opacity: 0;
}
25%, 50%{
transform: scale(1);
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; }
}