0.0.1 • Published 1 year ago

continuous-top-loading-bar v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

A stupidly simple Continuous Top Loader Bar component

  • Vanilla JS, powered by Web Animations API
  • No dependencies
  • Extremely lightweight: 100 lines of source code, 1.17 KB minified, 0.5 KB gzipped
  • Completely customizable: style it with CSS, define custom animation with your own KeyframeEffect

Installation

npm i continuous-top-loading-bar

Usage

<body>
  <div id="progress-bar"></div>
  <main>...</main>
</body
const bar = document.getElementById('progress-bar')
const loader = new ContinuousTopLoadingBar(bar)
// loader.start()
// loader.done()

API

See here https://nag5000.github.io/continuous-top-loading-bar

Demo

TBD

0.0.1

1 year ago