项目作者: jameswlane

项目描述 :
React PureComponent loading animations
高级语言: TypeScript
项目地址: git://github.com/jameswlane/react-pure-loaders.git
创建时间: 2017-11-10T11:19:28Z
项目社区:https://github.com/jameswlane/react-pure-loaders

开源协议:MIT License

下载


react-pure-loaders

Build Status
Code Coverage
dependencies Status
devDependencies Status
version
downloads

MIT License
Greenkeeper badge
FOSSA Status
Known Vulnerabilities
PRs Welcome
All Contributors

Donate
Code of Conduct
Roadmap
Examples
semantic-release
Commitizen friendly

Watch on GitHub
Star on GitHub
Tweet

React PureComponent loading animations

Demo

Demo Page

Installation

Install with yarn:

  1. yarn add @emotion/core react-pure-loaders

Install with npm:

  1. npm install @emotion/core react-pure-loaders --save

Usage

Each loader has their own default properties. You can overwrite the defaults by passing props into the loaders.
Each loader accepts a loading prop as a boolean. The loader will not render anything if loading is false.

Example

  1. import React from 'react';
  2. import { BallBeat } from 'react-pure-loaders';
  3. class AwesomeComponent extends React.Component {
  4. constructor(props) {
  5. super(props);
  6. this.state = {
  7. loading: true
  8. }
  9. }
  10. render() {
  11. return (
  12. <div>
  13. <BallBeat
  14. color={'#123abc'}
  15. loading={this.state.loading}
  16. ></BallBeat>
  17. </div>
  18. )
  19. }
  20. }

Available Loaders, PropTypes, and Default Values

Common default props for all loaders:

  1. loading: true
  2. color: '#000000'
Loader size:int height:int width:int radius:int margin:str
BallBeat
BallClipRotate
BallClipRotateMultiple
BallClipRotatePulse
BallGridBeat
BallGridPulse
BallPulse
BallPulseRise
BallPulseRound
BallPulseSync
BallRotate
BallScale
BallScaleMultiple
BallScaleRandom
BallScaleRipple
BallScaleRippleMultiple
BallSpinFadeLoader
BallSpinLoader
BallTrianglePath
BallZigZag
BallZigZagDeflect
LineScale
LineScaleParty
LineScalePulseOut
LineScalePulseOutRapid
LineScaleRandom
LineSpinFadeLoader
CubeTransition
Pacman
SemiCircleSpin
SquareSpin
TriangleSkewSpin

Contributors

Thanks goes to these wonderful people (emoji key):







James W. Lane III
James W. Lane III

💻 📖 ⚠️
Willane Paiva
Willane Paiva

📖
Larissa Moura
Larissa Moura

💻 ⚠️🔧🔌

This project follows the all-contributors specification. Contributions of any kind welcome!

License

FOSSA Status