feat(loading ellipsis): improve animation

This commit is contained in:
plebeius.eth
2024-04-28 19:38:18 +02:00
parent ef1580e8c0
commit eddc0982bb
@@ -1,24 +1,22 @@
.ellipsis {
display: inline-block;
}
.ellipsis:after {
content: '...';
position: absolute;
-webkit-animation: ellipsis steps(4, end) 1200ms infinite;
animation: ellipsis steps(4, end) 1500ms infinite;
width: 0px;
overflow: hidden;
display: inline-block;
position: absolute;
vertical-align: bottom;
-webkit-animation: ellipsis steps(4,end) 1500ms infinite;
animation: ellipsis steps(4,end) 1500ms infinite;
content: "\2026"; /* ascii code for the ellipsis character */
width: 0px;
}
@keyframes ellipsis {
to {
width: 1.3em;
width: 1.25em;
}
}
@-webkit-keyframes ellipsis {
to {
width: 1.3em;
width: 1.25em;
}
}