Skip to content

Commit 3a5f47c

Browse files
Stop the spinner and skeleton loops when motion is reduced (#64)
Signed-off-by: ryoaonetsuki <ryoaonetsuki@users.noreply.github.com> Co-authored-by: WaylandYang <145302500+WaylandYang@users.noreply.github.com>
1 parent 286511b commit 3a5f47c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎src/solid-glass.css‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,15 @@ svg.fill-primary:has(> circle) > circle {
13651365
.animate-fade-in {
13661366
animation: none;
13671367
}
1368+
1369+
/* The stock components' loops: the spinner and the skeleton pulse are
1370+
Tailwind's utilities, so they are stopped here, in the stylesheet,
1371+
rather than by editing the stock components. The caret blink is left
1372+
alone: it marks where text goes, it does not decorate. */
1373+
.animate-spin,
1374+
.animate-pulse {
1375+
animation: none;
1376+
}
13681377
}
13691378

13701379
.scrollbar-thin {

0 commit comments

Comments
 (0)