Skip to content

⌛ A true Html5 & SCSS progress bar in Material Design style! Use the html5 <progress> tag and with [value] and :not[value] to automagically switch between defined and indeterminate progress bar. No scripts required to get it work, css only!

License

Notifications You must be signed in to change notification settings

erikyo/material-progress-html5-sass

Repository files navigation

material-progress-html5-sass Build Status

A true Html5 & Sass progress bar in Material Design style!

DEMO: https://erikyo.github.io/material-progress-html5-sass/

alt text

To install it just copy the progress.scss file into your /src/scss/ folder and import it into your main.scss file with

@import "YOURASSETSPATH/progress";

There is nothing more to know just put inside your html code and will automatically come with the custom progress.scss style

Determinate progress bar

Use determinate mode for the progress bar when you want to show that a specific quantity of progress has occurred. For example, the percent remaining of a file being retrieved, the amount records in a batch written to database, or the percent remaining of a file that is uploaded. To indicate determinate progress, you must set the max value of the progress bar to max="100" (100 or 1000 or what you want) and set the amount of progress by setting a value="" (like value="80").

<progress max="100" value="0"></progress>

Indeterminate progress bar

Use indeterminate mode for the progress bar when you do not know how long an operation will take. Indeterminate mode is the default for progress bar and shows a cyclic animation without a specific amount of progress indicated. The following example shows an indeterminate progress bar:

<progress></progress>

To know

In the sass sheet there are some variables that allow you to customize the color, appearance, and size of the progress bar

//Colors
$progress-bar-color: #26a69a !default;
$progress-bar-background:#7c7876 !default;

//Sizes
$progress-height: 6px !default;
$progress-width: 100% !default;

//Apparence
$progress-border-radius: 1px !default;

About

⌛ A true Html5 & SCSS progress bar in Material Design style! Use the html5 <progress> tag and with [value] and :not[value] to automagically switch between defined and indeterminate progress bar. No scripts required to get it work, css only!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages