Loading Shimmer

Skeleton placeholders with a soft sweeping shimmer while content loads. Use to fill space for cards/lists/profiles that are still loading and make the wait feel shorter. Honors prefers-reduced-motion (static skeleton). Only show while real content is loading — never as decoration.

xpert-ai b119053 4 files · 5.0 KB Updated

File contents

loading-shimmer

Skeleton placeholders with a soft sweeping highlight. Part of motion-anything; obeys MOTION-SPEC.md.

When to use it

  • Placeholders for content still loading (cards, lists, profiles, media). Improves perceived performance.

When NOT to use it (restraint)

  • Loads under ~300ms (a skeleton flash is worse than nothing). Never as pure decoration.

How to apply

  1. Copy loading-shimmer.css and link it.
  2. Add data-skeleton to placeholder blocks (give each a width/height).
  3. Remove the placeholders (or the attribute) the moment real content arrives.

Accessibility & performance

  • prefers-reduced-motion: static skeleton, no sweep. The sweep uses transform only (GPU-safe).

xpert-ai/xpert-plugins/tree/main/xpertai/apps/motion/assets/upstream/recipes/web/loading-shimmer commit b119053d79

Frequently asked questions

npx skillmds@latest add xpert-ai/loading-shimmer