Draw the braille spinner as one masked CSS animation

This commit is contained in:
Ian Gulliver
2026-10-14 23:22:44 -07:00
parent fbfc3d1923
commit c6e57a4740
5 changed files with 17 additions and 74 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export function mountTranscript(root) {
};
let ctx = newCtx();
let context = new Map();
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) => {
transcript.classList.toggle("running", running);
if (running === !spinner.hidden) {