From: Ardis Lu Date: Tue, 4 Jan 2022 06:45:39 +0000 (-0800) Subject: Add inline skeleton loaders X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=15661f2abf73b6398109cb57a443c926ebd040f2;p=css-loaders Add inline skeleton loaders --- diff --git a/index.html b/index.html index 2792126..8386b9e 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,32 @@ } } + .skeleton-inline-container { + display: flex; + } + + .skeleton-inline-square { + inline-size: 1em; + block-size: 1em; + animation: shimmer 1s alternate infinite; + background: hsl(0deg 0% 50%); + } + + .skeleton-inline-circle { + inline-size: 1em; + block-size: 1em; + border-radius: 1em; + animation: shimmer 1s alternate infinite; + background: hsl(0deg 0% 50%); + } + + .skeleton-inline-line { + flex-grow: 1; + block-size: 1em; + animation: shimmer 1s alternate infinite; + background: hsl(0deg 0% 50%); + } + .inline-spinner { display: inline-block; box-sizing: border-box; @@ -69,6 +95,13 @@

A block skeleton line loader:

+

An inline skeleton square, circle, and line loader:

+
+ + + +
+

Some h1 text next to an inline-spinner