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.
Inside, the gray blocks are lifted off the card: each is shaped like a piece of the content, which fades in underneath, in the same place.
Blank, then jumps: the empty card grows when the content arrives and pushes the next item down; Holds the space: gray blocks keep its size, so nothing moves.
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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.