.demo{ background-color: #111; }
.text-effect{
color: #333;
font-family: 'Audiowide', sans-serif;
font-size: 100px;
font-weight: 700;
text-align: center;
}
.text-effect span{
display: inline-block;
animation: tubelight 2s infinite linear;
}
.text-effect span:nth-child(1){ animation-delay: 0.4s; }
.text-effect span:nth-child(2){ animation-delay: 1s; }
.text-effect span:nth-child(3){ animation-delay: 0.7s; }
.text-effect span:nth-child(4){ animation-delay: 0.3s; }
.text-effect span:nth-child(5){ animation-delay: 1s; }
.text-effect span:nth-child(6){ animation-delay: 1.2s; }
.text-effect span:nth-child(7){ animation-delay: 0.7s; }
.text-effect span:nth-child(8){ animation-delay: 2s; }
.text-effect span:nth-child(9){ animation-delay: 0.4s; }
.text-effect span:nth-child(10){ animation-delay: 2s; }
@keyframes tubelight{
0% {
color: #484848;
text-shadow: none;
}
10% {
color: #484848;
text-shadow: none;
}
20% {
color: #FFF900;
text-shadow: 0 0 7px #FFF900, 0 0 20px #FFF900;
}
30% {
color: #484848;
text-shadow: none;
}
40% {
color: #FFF900;
text-shadow: 0 0 7px #FFF900, 0 0 20px #FFF900;
}
70% {
color: #484848;
text-shadow: none;
}
80% {
color: #FFF900;
text-shadow: 0 0 7px #FFF900, 0 0 20px #FFF900;
}
90% {
color: #484848;
text-shadow: none;
}
100% {
color: #484848;
text-shadow: none;
}
}
@media only screen and (max-width: 990px){
.text-effect{ font-size: 90px; }
}
@media only screen and (max-width: 767px){
.text-effect{ font-size: 70px; }
}
@media only screen and (max-width: 576px){
.text-effect{ font-size: 50px; }
}
@media only screen and (max-width: 479px){
.text-effect{
font-size: 40px;
line-height: 50px;
}
}