.demo{ background:#3B3B98; }
.text-effect{
color:#fff;
font-family: "Mochiy Pop P One", sans-serif;
font-size: 100px;
font-weight: 300;
text-align: center;
letter-spacing: 2px;
}
.text-effect span{
display: inline-block;
animation: animate 1.5s infinite;
}
.text-effect span:nth-child(2){ animation-delay: 0.1s; }
.text-effect span:nth-child(3){ animation-delay: 0.2s; }
.text-effect span:nth-child(4){ animation-delay: 0.3s; }
.text-effect span:nth-child(5){ animation-delay: 0.4s; }
.text-effect span:nth-child(6){ animation-delay: 0.5s; }
.text-effect span:nth-child(7){ animation-delay: 0.6s; }
.text-effect span:nth-child(8){ animation-delay: 0.7s; }
.text-effect span:nth-child(9){ animation-delay: 0.8s; }
.text-effect span:nth-child(10){ animation-delay: 0.9s; }
@keyframes animate{
0%{ transform: translateY(0) rotate(0); }
50% { transform: translateY(-50%) rotate(-15deg); }
}
@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; }
}