Skip to content

🙌 A small library for displaying and hiding loading indicators

Notifications You must be signed in to change notification settings

BrsJsk/brsjs-loader

Repository files navigation

Loader

A small library for displaying and hiding loading indicators.

NPM

Build Status

Installation

npm install brsjs-loader

Usage

Initialize loader with

import Loader from 'brsjs-loader';
let loader = new Loader('id', 'type');

'id' is id of your element where you want to show your loader.

'type' is type of loader.

Show loader with

loader.show();

Hide loader with

loader.hide();

Initialize custom loader

let loader = new Loader('app', 'custom:nameOfClass');

Loaders

  • standard
  • small-circle
  • bars
  • dots
  • custom loaders

Show loader with

Example

Live example

let loader = new Loader('app', 'standard');

loader.show();
loader.hide();

About

🙌 A small library for displaying and hiding loading indicators

Resources

Stars

Watchers

Forks

Packages

No packages published