I'm on the hunt for a cool "typing animation" with three dots. Stumbled upon this gem online -> https://codepen.io/mattonit/pen/vLoddq
The issue is, it doesn't seem to work for me. I even tried it on jsfiddle and it just stops working.
I attempted tweaking the CSS a bit -> https://jsfiddle.net/leathan/nfhod84k/ but all I managed to achieve was three dots jumping together :(
Here's the CSS causing trouble:
div#wave {
text-align:center;
width:100px;
height:100px;
margin-left: auto;
margin-right: auto;
}
.dot {
display:inline-block;
width:12px;
height:12px;
border-radius:50%;
margin-right:3px;
background:#303131;
animation: wave 1.3s linear infinite;
&:nth-child(2) {
animation-delay: -1.1s;
}
&:nth-child(3) {
animation-delay: -0.9s;
}
}
@keyframes wave {
0%, 60%, 100% {
transform: initial;
}
30% {
transform: translateY(-15px);
}
}
Here's the HTML snippet:
<div id="wave">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>