ColorBar
colorfully loading bar
Install / Use
/learn @LoeiFy/ColorBarREADME
colorBar
colorfully loading bar http://loeify.github.io/colorBar
Installation
npm i -S colourbar
Usage
html markup
<div id="bar"></div>
use as module
import colorBar from 'colourbar'
//var colorBar = require('colourbar')
or use the script
<script src="colorBar.min.js"></script>
Options
// default
new colorBar({
selector: 'colorBar', // html id only
height: '3px',
duration: '2s',
colors: [
// ['color', 'position']
['#37cca2', '0%'],
['#46deb6', '17%'],
['#feed00', '38%'],
['#fbf27a', '59%'],
['#f24141', '79%'],
['#37cca2', '100%']
]
})
API
const bar = new colorBar({
selector: 'bar'
})
// loading
bar.loading()
// loaded
bar.loaded()
// hide
bar.hide()
Development
# build
$ npm run build
# local server http://127.0.0.1:1234
$ npm start
License
MIT
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
