Skip to content

Shimmer

Free

A light sweep for loading text and skeletons. Every band on the page can move in sync.

Tailwind CSS 4MIT + Commons Clause · 1 CSS file · 0 KB JavaScript

Which UI libraries have a lifetime plan?

Searching 12 sources
LightDark
PlainSpectrum
OnOff
FastBaseSlow
shimmer shimmer-sync

Install

Add the utility's CSS with the CLI, your coding agent, or by hand. It has no JavaScript.

Usage

Use shimmer on text, shimmer-block on a box, and shimmer-mask on anything else. Remove the class when the work is done.

assistant-status.tsx

Kinds

One band of light, three ways to draw it: on text, on a box, and through a mask.

  • Thinking about it
    Textshimmer

    Status lines while work runs.

  • Blockshimmer-block

    Skeletons. A composited sweep, cheap on the main thread.

  • Maskshimmer-mask

    Any element, icons and images too.

In sync

Put shimmer-sync-root on a parent and shimmer-sync on each band. All bands then move as one sweep.

shimmer-sync-root + shimmer-sync
shimmer-block alone

Options

The modifier classes of the utility. Put them next to the shimmer class on the text.

NameKindDefaultDescription
shimmer-duration-<ms>class2000The time of one sweep, in milliseconds.
shimmer-color-*classcurrent colorThe color of the band. Any theme color.
shimmer-spectrumclass—A band in the aurora colors, for AI moments.
shimmer-strength-<n>class80How bright the band is, in percent.
shimmer-paused · -once · -reverseclass—Stop the sweep, run it one time, or run it from the end.
shimmer-sync-root · shimmer-syncclass—Bands under one root move as one sweep.