Simple modifiable spinner for react.js
Live demo: https://dzuming.github.io/react-spinner/
npm i react-easy-spinner
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;