npm

Need private packages and team management tools?Check out npm Orgs. »

app-loading

0.0.51 • Public • Published

app-loading

js-standard-style

Quick start

bower install app-loading works with browsers

appLoading.start()
appLoading.stop()

npm install app-loading works with webpack

import appLoading from 'app-loading'
appLoading.start()

Advance usage

// set up some custom color
// globally
appLoading.setColor('#333')
appLoading.start()
// reset
appLoading.setColor(null)
 
// or for temporary use, this will override the `appLoading.setColor` setting
appLoading.start('#f83')
appLoading.start('yellow')
appLoading.start('rgba(76, 207, 177, 0.7)')
 
// use on server side
if (typeof window !== 'undefined') {
  import appLoading from 'app-loading'
  appLoading.start()
}

Changelog

v0.0.5 - 2015/09/03

  • Fix setColor and add test

v0.0.4 - 2015/08/22

  • Rewrite in ES6

v0.0.3 - 2015/07/20

  • add setColor method

v0.0.2

  • Clean code
  • Update demo

v0.0.1

  • Prototype.
  • Medium style loading bar.

install

npm i app-loading

Downloadsweekly downloads

36

version

0.0.51

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability