Giter Site home page Giter Site logo

gpsbird / react-loading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from summer-andy/react-loading

0.0 1.0 0.0 1.6 MB

Build a smooth and lightweight react component loading with css ๐ŸŽ‰ .

Home Page: http://139.196.82.33:8080/iframe.html?id=demo--demo

License: MIT License

JavaScript 96.13% CSS 3.87%

react-loading's Introduction

A React-based Loading animation component library

Introduction

React-Loading is a React-based Loading animation component library includes many exquisite and beautiful loading components. It will effectively relieve the user's anxiety when you give loading dynamics tips at the appropriate place and moment in your project. This component library supports on-demand loading, so pick a favorite Loading component now to enrich your project ~

๐ŸŽ‰ check demo

Quick Start

๐Ÿ›  Install

npm install react-loadingg

๐Ÿ“ฆ Use

import { BoxLoading } from 'react-loadingg';

<BoxLoading />;

Components related

๐Ÿ“• API

Parameter Description Type Default
color Set color, support hexadecimal and RGB string '#00adb5'
speed Set animation speed number(s) -
size Set the component size, the optional value is small default large string 'default'
style Style the component Object -

๐Ÿ“ Components list

components color speed size style
BabelLoading โœ… โœ… โœ… โœ…
BlockLoading โœ… โœ… โœ… โœ…
BlockReserveLoading โœ… โœ… โœ… โœ…
BoxLoading โœ… โœ… โœ… โœ…
CircleLoading โœ… โœ… โœ… โœ…
CircleToBlockLoading โœ… โœ… โœ… โœ…
CommonLoading โœ… โœ… โœ… โœ…
DisappearedLoading โœ… โœ… โœ… โœ…
LoopCircleLoading โœ… โœ… โœ… โœ…
NineCellLoading โœ… โœ… โœ… โœ…
TouchBallLoading โœ… โœ… โœ… โœ…
TransverseLoading โœ… โœ… โœ… โœ…
WaveLoading โœ… โœ… โœ… โœ…
WaveTopBottomLoading โœ… โœ… โœ… โœ…
WindMillLoading โœ… โœ… โœ… โœ…
JumpCircleLoading โœ… โœ… โœ… โœ…
MeteorRainLoading โœ… โœ… โœ… โœ…
RotateCircleLoading โœ… โœ… โœ… โœ…
StickyBallLoading โœ… โœ… โœ… โœ…
SemipolarLoading โœ… โœ… โœ… โœ…
SolarSystemLoading โœ… โœ… โœ… โœ…
LadderLoading โœ… โœ… โœ… โœ…
HeartBoomLoading โœ… โœ… โœ… โœ…
RollBoxLoading โœ… โœ… โœ… โœ…
RectGraduallyShowLoading โœ… โœ… โœ… โœ…
PointSpreadLoading โœ… โœ… โœ… โœ…
ThreeHorseLoading โœ… โœ… โœ… โœ…
PassThrouthLoading โœ… โœ… โœ… โœ…
CoffeeLoading โœ… โœ… โœ… โœ…
BatteryLoading โœ… โœ… โœ… โœ…
DiamonLoading โœ… โœ… ๐Ÿ”จ โœ…
EatLoading โœ… โœ… ๐Ÿ”จ โœ…

โŒจ๏ธ Participate in development

Running the project for the first time

$ git clone https://github.com/sixiaodong123/react-loading
$ npm run dev

P.S.: If startup fails, please installyarnfirst

npm install -g yarn

Running the project for the second time

npm run storybook

๐Ÿ”จ Component packaging

$ npm run build

๐ŸŽ‰ Component release

$ npm run release

๐Ÿค Component submission specifications

  • perf: optimization related, such as improving performance and experience
  • feat: new feature
  • fix: fix bug
  • docs: add or change documentation
  • style: format (changes that do not affect code execution)
  • refactor: refactoring (neither new features nor code changes that modify bugs)
  • test: add tests
  • chore: changes in the build process or aids
  • upgrade: third-party library upgrades
  • revert: rollback
  • scope: the scope of the commit, such as: route, component, utils, build ...
  • merge: Merge branch ? of ?.

โค๏ธ Component branch management

  • Module Function Development (feature / xxx)
  • Bug fixes (bug / xxx)

FAQ

๐Ÿ›Ž I just want to use BabelLoading๏ผŒbut it seems that I have to import the whole react-loadingg:
Tryreact-loading-demand, or load on demand in the following way
import BabelLoading from 'react-loadingg/lib/BabelLoading'
๐Ÿ›Ž The component is completely centered by default. If you want to modify the component's style, the component's default completely centered style will be overwritten.

react-loading's People

Contributors

summer-andy avatar vortesnail avatar

Watchers

 avatar

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.