1.3.2 • Published 7 years ago

react-bubble-preloader v1.3.2

Weekly downloads
49
License
MIT
Repository
github
Last release
7 years ago

React Bubble Preloader

React component which provides nice and simple preloader

Demo

https://ivanzusko.github.io/react-bubble-preloader/

Installation

Just run

npm i react-bubble-preloader

or (if you are using Yarn)

yarn add react-bubble-preloader --dev

Usage

import BubblePreloader from 'react-bubble-preloader';

<BubblePreloader
    bubble={{ width: '2rem', height: '2rem' }}
    animation={{ speed: 2 }}
    className="your-own-class__if-you-need-it"
    colors={['red', 'blue', 'yellow']}
/>

Customization

All props are not required, only if you want to customize:

PropertyTypeDescription
animationobjectwith speed key
bubbleobjectwith width and height keys, which accept any kind of size units
classNamestringyou can pass your custom class to the preloader, but bubbles still will have classes bubble1 , bubble2 , bubble3
colorarraywhich accepts three colors which will be used one by one as background colors of the bubbles

P.S.

Huge appreciation to JULIAN ĆWIRKO for his react-npm-boilerplate

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago