npm.io
0.1.4 • Published 7 years ago

flash-loader

Licence
—
Version
0.1.4
Deps
4
Size
53 kB
Vulns
0
Weekly
0
Stars
5

Flash-Loader ️ ️

MIT Licence

Flash loader is a fun , lightweight react component library .It supports three different loaders created by spritesheet animation and can be used in place of the traditional spinner to depict fetching/loading of data on a page.

ezgif com-video-to-gif

Find it here

How to install and run ?

# To install

npm i flash-loader

# Then import in your project to use it

import FlashLoader from "flash-loader";

Modes

The flash loader expects two props (otherwise shows default)

 - type: string
 - open: bool
  1. Running flash

running loader appears when type is set to "runbarry"

Here is an example

<FlashLoader open={true} type="runbarry"/>

  1. Rotate Flash

It appears when type is set to "rotate"

<FlashLoader open={true} type="rotate"/>

  1. Jump Flash

It appears when type is set to "jump"

<FlashLoader open={true} type="jump"/>

Hang in!

New updates coming in a ️