Sine Wave ticker
by Aakash Khapare M
HTML
<div class="sign-wave-ticker">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
CSS
.sign-wave-ticker{
width: 50px;
height: 50px;
text-align: center;
display: flex;
position: absolute;
left: calc(50% - 25px);
top: 50px;
}
.sign-wave-ticker > span{
display: flex;
align-self: flex-end;
flex: 1;
vertical-align: bottom;
height: 0px;
width: 2px;
background-color: #f04;
margin-right: 2px;
animation-name: wave;
animation-duration: 1s;
animation-iteration-count: infinite;
}
.sign-wave-ticker > span:nth-child(2){ animation-delay: 0.1s; }
.sign-wave-ticker > span:nth-child(3){ animation-delay: 0.6s; }
.sign-wave-ticker > span:nth-child(4){ animation-delay: 0.3s; }
.sign-wave-ticker > span:nth-child(5){ animation-delay: 0.2s; }
@keyframes wave{
0%, 100%{
height: 0;
background-color: orange;
}
20%{
height: 50px;
}
60%{
height: 30px;
background-color: #f44336;
}
80%{
height: 45px;
}
}