.demo{ background-color: #b6a4b3; }
.text-effect{
color: rgba(0, 0, 0, 0.2);
font-family: 'Cherry Bomb One', cursive;
text-align: center;
text-transform: uppercase;
}
.text-effect span{
font-size: 100px;
font-weight: 500;
display: inline-block;
position: relative;
}
.text-effect span:before{
content: attr(data-content);
color: #632845;
width:100%;
position: absolute;
top: 0;
left: 0;
}
.text-effect span:nth-child(1):before{ animation: animate 5s infinite alternate 0s; }
.text-effect span:nth-child(2):before{ animation: animate 5s infinite alternate 0.2s; }
.text-effect span:nth-child(3):before{ animation: animate 5s infinite alternate 0.4s; }
.text-effect span:nth-child(4):before{ animation: animate 5s infinite alternate 0.6s; }
.text-effect span:nth-child(5):before{ animation: animate 5s infinite alternate 0.8s; }
.text-effect span:nth-child(6):before{ animation: animate 5s infinite alternate 1s; }
.text-effect span:nth-child(7):before{ animation: animate 5s infinite alternate 1.2s; }
.text-effect span:nth-child(8):before{ animation: animate 5s infinite alternate 1.4s; }
.text-effect span:nth-child(9):before{ animation: animate 5s infinite alternate 1.6s; }
.text-effect span:nth-child(10):before{ animation: animate 5s infinite alternate 1.8s; }
@keyframes animate{
0%, 10%, 90%, 100% { scale: 0; }
20%, 75% { scale: 1; }
}
@media only screen and (max-width: 990px){
.text-effect span{ font-size: 90px; }
}
@media only screen and (max-width: 767px){
.text-effect span{ font-size: 70px; }
}
@media only screen and (max-width: 576px){
.text-effect span{ font-size: 50px; }
}
@media only screen and (max-width: 479px){
.text-effect{
font-size: 40px;
line-height: 50px;
}
}