Drop a smooth, dependency-free loading spinner into a React app.
Show a themed loading indicator, like a chat app's 'loading older messages' strip, with a custom gradient and pattern.
Replace a generic spinning circle with a gradient wave that keeps animating smoothly during heavy page work.
| biasia/gradient-spin | alemtuzlak/kiira | blazeup-ai/pi-insights | |
|---|---|---|---|
| Stars | 49 | 49 | 49 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | easy |
| Complexity | 1/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
npm install and a single component import, with no configuration required to get a working spinner.
gradient-spin is a small React component that shows a loading spinner made of a grid of colored cells, swept by a moving gradient wave rather than the usual spinning circle. It has no runtime dependencies at all, so adding it does not pull in any other libraries. The wave can move across the grid in one of four patterns: an arrow shape folding toward the center, a diagonal sweep, a snake-like path that travels back and forth, or a ripple that expands outward like a ring in water. The colors themselves come from a gradient with several preset options, such as sunrise, mint, or twilight, or you can supply your own custom colors and where each one sits along the gradient. The color sampling is done using a color space called OKLab instead of a plain mix of red, green, and blue values, which the README says avoids colors turning muddy or gray partway through the gradient. Under the hood, every cell shares a single CSS animation, and each cell is simply given a different negative starting delay based on its distance from the wave's origin, so the browser only has to run one shared animation rather than many separate ones. Because of this, the spinner keeps animating smoothly even if the rest of the page's JavaScript is busy, which is exactly when a loading spinner needs to keep moving. It also respects a user's reduced-motion accessibility setting by freezing to a still frame, and it includes accessibility labeling out of the box. To use it, you install it from npm and import a single GradientSpin component, then customize its grid size, colors, pattern, and animation speed through props. There is a live demo site linked in the README, and a companion library called gradient-shimmer applies the same gradient colors to text instead of a spinner grid. The project is released under the MIT license.
A dependency-free React loading spinner made of a colored cell grid swept by a smooth gradient wave, using one shared CSS animation for performance.
Mainly TypeScript. The stack also includes TypeScript, React, CSS.
Free to use, modify, and distribute for any purpose, including commercial, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.