Kinetic Skeleton

Placeholder shapes with a soft shimmer that hold the layout while content loads. It stands still when motion is reduced.

  • <kt-kinetic-skeleton>
  • Feedback
  • No framework

Kinetic Skeleton

The code

Copy the Kinetic Skeleton

Fastest: press Copy on the card above for one complete file. To build it into your own project, use the files below: the markup, the styles, this component’s script and the shared effects script (effects.js) that every component uses.

<kt-kinetic-skeleton variant="text" lines="3"></kt-kinetic-skeleton>

<kt-kinetic-skeleton variant="avatar"></kt-kinetic-skeleton>

<kt-kinetic-skeleton variant="card" lines="2"></kt-kinetic-skeleton>

<kt-kinetic-skeleton variant="list" lines="3"></kt-kinetic-skeleton>

Attributes

NameWhat it doesDefault
variant"text", "avatar", "card" or "list".text
linesNumber of text lines (rows for "list"), from 1 to 12.3

Keyboard and screen readers

  • The element carries aria-busy="true" and a visually hidden "Loading" message in a status region.
  • The decorative shapes are hidden from screen readers.
  • Remove the skeleton (or set aria-busy to false) when the real content arrives.
  • With prefers-reduced-motion the shimmer is switched off and the shapes are static.

Styling variables

Every look is a CSS variable: --kt-accent, --kt-accent-ink, --kt-radius-btn, --kt-surface-radius, --kt-surface-bg, --kt-border-w, --kt-comp-shadow and --font-sans. The copied file sets them all from your choices.

FAQ

Kinetic Skeleton: questions answered

How do I use the Kinetic Skeleton?

Press Copy on the card to get a complete HTML file, or copy the HTML, CSS and JavaScript tabs into your own page. In your markup the element is written as <kt-kinetic-skeleton>.

Which attributes does <kt-kinetic-skeleton> accept?

variant, lines. Each one is described in the attributes table on this page.

Is the Kinetic Skeleton accessible?

The element carries aria-busy="true" and a visually hidden "Loading" message in a status region. The decorative shapes are hidden from screen readers. Remove the skeleton (or set aria-busy to false) when the real content arrives. With prefers-reduced-motion the shimmer is switched off and the shapes are static.

Can I change the Kinetic Skeleton colors, corners and font?

Yes. Use the options on this page: accent color, border radius, background, border, shadow and Google font. The copied code already contains your choices, and every one of them is a CSS variable you can edit later.