app-loading
v0.0.51
Published
Focus on Medium-like app loading style
Downloads
195
Readme
app-loading
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.