npm.io
0.0.6 • Published 3 years ago

material-progress-bar

Licence
MIT
Version
0.0.6
Deps
0
Size
5 kB
Vulns
0
Weekly
0

Material Progress Bar

Google Material design progress bar for your website

Installation

Install using npm:

npm install material-progress-bar

Import the files:

import 'material-progress-bar/mprogress.js';
import 'material-progress-bar/mprogress.css';

Usage

Import JavaScript and CSS to your HTML

<script src="https://cdn.jsdelivr.net/gh/brokiem/material-progress-bar@master/mprogress.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/brokiem/material-progress-bar@master/mprogress.css">

Add this code to your HTML body

<div id="mprogress"></div>
// Use MProgress.show() to show progress bar
MProgress.show();

// Use MProgress.hide() to hide progress bar
MProgress.hide();

Demo

https://brokiem.github.io/material-progress-bar/

Keywords