Skip to content

Commit 9802061

Browse files
committed
Animate dots a loading indicator
1 parent 15caddb commit 9802061

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

css/site.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ h1 {
161161
z-index: 999;
162162
}
163163

164+
.loading-dots::after {
165+
content: "";
166+
animation: loading-dots 2.5s steps(1) infinite;
167+
}
168+
169+
@keyframes loading-dots {
170+
0% { content: ""; }
171+
20% { content: "."; }
172+
40% { content: ".."; }
173+
60% { content: "..."; }
174+
}
175+
164176
.fade-out {
165177
opacity: 0;
166178
transition: var(--fadeTransition);

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<body>
1212
<div class='container'>
1313
<div id='loading'>
14-
<h1>Loading...</h1>
14+
<h1>Loading<span class="loading-dots"></span></h1>
1515
</div>
1616
<div id='main' class='full-height'>
1717
<div class='overlay'>

0 commit comments

Comments
 (0)