xhr-progress-bar
v0.0.7
Published
A simple progress bar for XHRs.
Readme
Progress bar
Usage
Simple. require('xhr-progress-bar')();
##Styling
.progress {
min-width: 0%;
width: 0%;
background: #00f;
height: 2px;
position: absolute;
left: 0;
top: 0;
opacity: 0;
transition: width .5s ease, min-width .5s ease;
&.started,
&.loading {
opacity: 1;
min-width: 10%;
}
&.done {
width: 100%;
transition: width .5s ease, min-width .5s ease, opacity .3s ease .6s;
opacity: 0;
}
}