react-load-animations

1.0.2 • Public • Published

react-load-animations

npm version Build Status Coverage Status

React loading animations using css. See demo

Installation

npm

npm i react-load-animations

yarn

yarn add react-load-animations

unpkg

<script src="https://unpkg.com/react-load-animations@latest/dist/bundle.umd.js"></script>

Usage

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 props
      <Ellipsis width={100} />
      <Ring height={100} />
      <Ripple width={100} height={100} />
    )
  }
}

Props

All components come with the following props

  • Width(Int): Set load animation width (Default 64)
  • Height(Int): Sets load animation height (Default 64)

Examples

Copyright

Ellipsis, Ring, Ripple modified from loading.io

Package Sidebar

Install

npm i react-load-animations

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

19.4 kB

Total Files

6

Last publish

Collaborators

  • alexanderdunlop