04.09 · Micro-Interactions

Skeleton Loader

Gray shapes hold the place of content while it loads. Best for feeds and cards.

Watch it

It plays by itself. Turn on slow motion to see each part of the movement.

Try it

Change a setting and the animation plays again.

Pulse speed

One to two seconds a pulse feels calm.

Pulse strength

How far the blocks fade between pulses.

More optionsFewer options

Loading time

How long the placeholders show before the content.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add a skeleton loading state to [the card, list or panel whose content loads]. While it loads, show gray blocks in the shapes and sizes of the content that is coming, such as a round avatar, lines of text and an image, and let them pulse between dimmer and brighter. When the content is ready, swap the blocks for it and fade it in. Match the shapes closely, because a skeleton that does not fit the content makes the page jump when it arrives. If the visitor has reduced motion turned on, keep the blocks still. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Feeds
  • Cards
  • Lists
  • Dashboards

Avoid on

  • Very short waits
  • Unknown layouts