Giter VIP home page Giter VIP logo

react-pretty-loading's Introduction

react-pretty-loading

用于在react中显示加载动画

在线预览组件

在线预览

动画来源

感谢作者yangshun收集的awesome-spinners收集的动画

使用指南

在导入组件时只需要导入需要的组件,这样在打包时可以缩小代码体积

npm install --save react-pretty-loading
import React from "react";
import { render } from "react-dom";
import { BallClipRotateMultiple } from "react-pretty-loading";

class App extends React.Component {
  state = {
    loading: false
  };
  render() {
    const { loading } = this.state;
    return (
      <div className="container">
        <h1>react-pretty-loading</h1>
        <BallClipRotateMultiple loading={loading} center />
      </div>
    );
  }
}

组件选项

通用属性

参数 说明 类型 默认值
loading 是否显示动画 Boolean false
center 动画是否居中 Boolean false
color 动画颜色 String #fff
width 动画大小 Number 详情查看各个组件默认值

组件列表

  • Ball8Bits
  • Ball8bits
  • BallClipRotate
  • BallClipRotateMultiple
  • BallClipRotatePulse
  • BallAtom
  • BallBeat
  • BallCircus
  • BallClimbingDot
  • BallElasticDots
  • BallFall
  • BallFussion
  • BallGridBeat
  • BallGridPulse
  • BallNewtonCradle
  • BallPulse
  • BallPulseRise
  • BallPulseSync
  • BallRotate
  • BallRunningDots
  • BallScale
  • BallScaleMultiple
  • BallScalePulse
  • BallScaleRipple
  • BallScaleRippleMultiple
  • BallSpin
  • BallSpinClockWise

react-pretty-loading's People

Contributors

monsterooo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jeroxie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.