react-loading-lottie

3.4.2 • Public • Published

react-loading-lottie

Build Status Coverage Status

Easy to use loading animations for React projects. Uses SVG animations from Brent Jackson's loading project.

Installation

npm i react-loading-lottie

or

yarn add react-loading-lottie

Demo

Check here

Loading Types

  • blank
  • balls
  • bars
  • bubbles
  • cubes
  • cylon
  • spin
  • spinningBubbles
  • spokes

Examples

import React from 'react';
import ReactLoading from 'react-loading-lottie';

const Example = ({ type, color }) => (
	<ReactLoading type={type} color={color} height={667} width={375} />
);

export default Example;
import React from 'react';
import ReactLoading from 'react-loading-lottie';

const Example = ({ type, color }) => (
	<ReactLoading type={type} color={color} height={'20%'} width={'20%'} />
);

export default Example;

Props

Name Type Default Value
type String balls
color String #ffffff
delay Number 0 (msecs)
height Number or String 64 (px)
width Number or String 64 (px)
className String ''

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-loading-lottie

Weekly Downloads

0

Version

3.4.2

License

MIT

Unpacked Size

64.6 kB

Total Files

34

Last publish

Collaborators

  • jonybinhr20