Skip to content

BigBen3918/awesome-load

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awesome-load

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

Installation

With Yarn:

yarn add awesome-load

With npm:

npm install --save awesome-load

Usage

Each spinner has their own default properties. You can overwrite the defaults by passing props into the spinners.

Example

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;

Override props

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

Releases

No releases published

Packages

No packages published