1.0.2 • Published 7 years ago

react-easy-spinner v1.0.2

Weekly downloads
22
License
-
Repository
github
Last release
7 years ago

React-easy-spinner npm version

Simple modifiable spinner for react.js

Demo

Live demo: https://dzuming.github.io/react-spinner/

Install

npm i react-easy-spinner

Usage

To app.js file add:

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 (
      <div className="App">
          <Spinner {...settings}/>
      </div>
    );
  }
}

export default App;

Options

Propertiesvaluesdefault
shapeloader, cog, triangleUp-
animationpulse, run, bounceIn, spinpulse
time1-10s2s
durationinfinite, numberinfinite
opacity0-10.3
bgColorhex#2d1557#2d1557
elColorhex#27556c#27556c
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago