04.10 · Micro-Interactions

Shimmer Effect

A band of light sweeps over gray placeholders. Best for loading screens.

Watch it

It moves by itself. Pause it to look closely, or turn on slow motion to see each part of the movement.

Try it

Change a setting and see the difference as it moves.

Speed

One sweep every half second to a second feels calm.

Brightness

How strong the band of light is.

Highlight angle

The slant of the band as it sweeps across.

More optionsFewer options

Highlight color

Tinted light suits a branded loading screen.

Copy the prompt

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

Add a shimmer to [the skeleton placeholders on your loading screen]. Lay a band of light over each placeholder and sweep it across in one direction, again and again, so the gray shapes look like content streaming in. Every placeholder on the page should shimmer in the same direction, and each one must clip the band to its own edges so it never spills out. Keep the band see-through so it works on any placeholder color. If the visitor has reduced motion turned on, keep the placeholders 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
  • Image galleries

Avoid on

  • Very short waits
  • Busy pages