Matrix Loaders, animated React component
Six 5×5 dot-matrix loaders driven by one shared pulse. Only the phase offset per dot changes, which turns the same grid into a wave, ripple, spiral, rain, sweep or checkerboard.
- Pro
- Loaders
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| size | number | 64 | Grid size of each loader in px; tiles are size + 68 px square. |
| color | string | undefined | One dot colour for every loader. Defaults to each pattern's own colour. |
| showLabels | boolean | true | Show the pulsing label ("Indexing…", "Thinking…") under each loader. |
| MatrixLoader.pattern | "wave" | "ripple" | "spiral" | "rain" | "halogen" | "checker" | number | 0 | Standalone MatrixLoader: which pattern to play, by name or index. |
| MatrixLoader.size | number | 64 | Standalone MatrixLoader: grid size in px. |
| MatrixLoader.color | string | undefined | Standalone MatrixLoader: dot colour; defaults to the pattern's colour. |
| MatrixLoader.label | string | undefined | Standalone MatrixLoader: accessible label; defaults to the pattern's label. |