React loading animations using css. See demo
npm i react-load-animations
yarn add react-load-animations
<script src="https://unpkg.com/react-load-animations@latest/dist/bundle.umd.js"></script>
import React, { Component } from 'react'
import { Comet, Ellipsis, Ring, Ripple } from 'react-load-animations';
class App extends Component {
render() {
return (
// Default size is 64px by 64px
<Comet />
// With size props
<Ellipsis width={100} />
<Ring height={100} />
<Ripple width={100} height={100} />
// With animating props
<Comet animating={true} /> // Visible
<Comet animating={false} /> // Hidden
)
}
}
All components come with the following props
- Animating(Bool): Set the load animation to hide and show (Default true)
- Width(Int): Set load animation width (Default 64)
- Height(Int): Sets load animation height (Default 64)
Ellipsis, Ring, Ripple modified from loading.io