Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dzuming/react-spinner
Simple modifiable spinner for react.js
https://github.com/dzuming/react-spinner
loader react reactjs spinner
Last synced: about 2 months ago
JSON representation
Simple modifiable spinner for react.js
- Host: GitHub
- URL: https://github.com/dzuming/react-spinner
- Owner: Dzuming
- Created: 2017-09-15T13:54:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T11:11:30.000Z (over 7 years ago)
- Last Synced: 2024-04-24T23:22:01.745Z (9 months ago)
- Topics: loader, react, reactjs, spinner
- Language: JavaScript
- Homepage:
- Size: 1.38 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
React-easy-spinner [![npm version](https://badge.fury.io/js/react-easy-spinner.svg)](http://badge.fury.io/js/react-easy-spinner)
=======
Simple modifiable spinner for react.js
## Demo
Live demo: https://dzuming.github.io/react-spinner/## Install
```sh
npm i react-easy-spinner
```
## Usage
To app.js file add:```js
import React, {Component} from 'react';
import Spinner from 'react-easy-spinner';
class App extends Component {
render() {
let settings = {
shape: "triangleUp",
animation: "pulse",
time: "2s",
duration: 'infinite',
opacity: '0.3',
bgColor: '#27556c',
elColor: '#2d1557'
}
return (
);
}
}export default App;
```
## Options| Properties| values | default |
|----------|:-------------:|------:|
| shape | loader, cog, triangleUp | - |
| animation | pulse, run, bounceIn, spin | pulse |
| time | 1-10s | 2s |
| duration | infinite, number | infinite |
| opacity | 0-1 | 0.3 |
| bgColor | hex | ![#2d1557](https://placehold.it/15/2d1557/000000?text=+)`#2d1557` |
| elColor | hex | ![#27556c](https://placehold.it/15/27556c/000000?text=+)`#27556c` |