three-dots
Version:
CSS loading animations made with single element
51 lines (41 loc) • 709 B
text/less
/**
* ==============================================
* Experimental: Emoji
* Dot Bouncing
* ==============================================
*/
@d: 20px;
.dot-bouncing {
position: relative;
height: @dot-height;
font-size: 10px;
&::before {
content: '⚽🏀🏐';
display: inline-block;
position: relative;
animation: dot-bouncing 1s infinite;
}
}
@keyframes dot-bouncing {
0% {
top: -@d;
animation-timing-function: ease-in;
}
34% {
transform: scale(1, 1);
}
35% {
top: @d;
animation-timing-function: ease-out;
transform: scale(1.5, .5);
}
45% {
transform: scale(1, 1);
}
90% {
top: -@d;
}
100% {
top: -@d;
}
}