Draw the braille spinner as one masked CSS animation
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ export function mountTranscript(root: HTMLElement): () => void {
|
||||
let ctx = newCtx();
|
||||
let context = new Map<string, { used: number; window: number; model: string }>();
|
||||
|
||||
const spinner = h("div", { class: "spinner", hidden: true }, ...[1, 2, 3, 4, 5, 6].map((n) => h("span", { class: `dot${n}` })));
|
||||
const spinner = h("div", { class: "spinner", hidden: true });
|
||||
const setRunning = (running: boolean) => {
|
||||
transcript.classList.toggle("running", running);
|
||||
if (running === !spinner.hidden) {
|
||||
|
||||
Reference in New Issue
Block a user