Vanilla JavaScript article top custom progress bar for website.
- Cross-browser support
- Desktop and mobile platforms support
- Supports custom settings (check out the syntax)
dist/
├── article-progress-bar.js
└── article-progress-bar.min.js (compressed)
npm install article-progress-bar.js
In browser:
<script src="/path/to/article-progress-bar.js"></script>
new ArticleProgressBar(mobile, heightActive, heightContainer, colorActive, colorContainer);
-
mobile (optional)
- Type:
Boolean
- For mobile devices or not (default: true).
- Type:
-
heightActive (optional)
- Type:
String
- Height of active element in scrollbar's container (default: "4px").
- Type:
-
heightContainer (optional)
- Type:
String
- Height of scrollbar's container element (default: 4px).
- Type:
-
colorActive (optional)
- Type:
String
- Color of active element in scrollbar's container (default: #f23232).
- Type:
-
colorContainer (optional)
- Type:
String
- Color of scrollbar's container element (default: #f2f2f2).
- Type:
new ArticleProgressBar();
The Article-Progress-Bar.js licensed under the MIT license.
- Chrome (49.0.2623 or latest)
- Firefox (45.0 or latest)
- Opera (36.0.2130.32 or latest)
- Edge (25.10586/EdgeHTML 13.10586 or latest)
- Safari (9.0 or latest)
You can express your gratitude by clicking on one of the links