Actions Pure CSS

Pixel loader

A grid of pixels that wave, ripple from the centre or twitch at random — pure CSS, with role=status and a hidden label.

Real scenarios

The component as it is used in a product — not a specimen grid.

A table that is still loading

A wide chaos strip stands in for the row the server has not answered yet — pixels twitching at their own noise, never a blank hole.

Latest orders Loading…
Loading orders Loading orders

Three moods of waiting

wave sweeps diagonally, center ripples out of the middle, chaos lets every cell do its own thing — one line each.

Thinking Rippling Twitching

Waiting on a wire:loading action

The button hits the server; while it sleeps, the pixel loader keeps the panel honest about what is happening.

Fetching Crunching…

role="status" is built in, with the label visually hidden for screen readers.

Important props

Important props
Prop Type Default What it does
variant string 'wave' wave (a diagonal sweep) · center (a ripple from the middle) · chaos (each cell on its own noise).
rows / cols int 5 / 5 The grid size; wide rows (say 3×24) make a great table skeleton.
size string 'md' Sizes: xs · sm · md · lg.
label string null The visually-hidden text for screen readers; decorative drops the status role.

Snippet

<x-nx::pixel-loader variant="chaos" :rows="3" :cols="24" size="sm" label="در حال بارگیری سفارش‌ها" />