:root{
--peach: #fe96b7;
--green: #b8d953;
--pink: #bb86e9;
--lilac: #b2b2eb;
--dark-green: #529a91;
}
.text-effect{
color: #fff;
font-family: 'Ultra', serif;
font-size: 100px;
line-height: 100px;
text-align: center;
}
.text-effect span{
display: inline-block;
transform-origin: top;
animation: fontGrow 2s ease-in-out infinite;
}
.text-effect span:nth-child(1),
.text-effect span:nth-child(6){
color: var(--peach);
}
.text-effect span:nth-child(2),
.text-effect span:nth-child(7){
color: var(--green);
}
.text-effect span:nth-child(3),
.text-effect span:nth-child(8){
color: var(--pink);
}
.text-effect span:nth-child(4),
.text-effect span:nth-child(9){
color: var(--lilac);
}
.text-effect span:nth-child(5),
.text-effect span:nth-child(10){
color: var(--dark-green);
}
.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 fontGrow{
0%{ transform: scaleY(1); }
50%{ transform: scaleY(2); }
100%{ transform: scaleY(1); }
}
@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: 35px; }
}