An animated loading spinner
- No images
- No dependencies
- Highly configurable
- Resolution independent
- Uses CSS keyframe animations
- Built with Typescript
- Works in all major browsers
- Includes TypeScript definitions
- Distributed as a native ES6 module
- MIT License
With Yarn:
yarn add awesome-loadWith npm:
npm install --save awesome-loadEach spinner has their own default properties. You can overwrite the defaults by passing props into the spinners.
import React from "react";
import { CircleSpin } from 'awesome-load';
function App() {
return <CircleSpin type="Spin_1" width="50px" color1="red" color2="blue" />;
}
export default App;height, width, and color props
The input to these props can be number or string.
| Spinner | width | height | color1 | color2 | duration |
|---|---|---|---|---|---|
| CircleSpin | string | string | string | string | number |