lightningtgc / mprogress.js Goto Github PK
View Code? Open in Web Editor NEWMaterial Progress —Google Material Design Progress linear bar. By using CSS3 and vanilla JavaScript.
Home Page: http://lightningtgc.github.io/MProgress.js/
Material Progress —Google Material Design Progress linear bar. By using CSS3 and vanilla JavaScript.
Home Page: http://lightningtgc.github.io/MProgress.js/
In your example videos you have a type 4 Query that transitions to Type 1 Determinate. Do you have any working examples?
With the type 4 .end() method it appears as if your loading/progress is finished by zooming all the way right, but that's not what the video of the transition does. And trying to manage 2 MProgress bars on the same element as if to replace the 1st Type 4 bar doesn't work with the lib. Once you .end() the first one on an element, a new bar appears on the element.
I use it on angular js and create class to manage it
var clsLoader = (function () {
var mprogress = new Mprogress({
template: 2
});
return {
show: function () {
mprogress.start();
},
hide: function () {
mprogress.end();
}
}
})();
when i have two call for function show, and two call for function hide the loader not ended?
We should gain even more traction once the project is registered with Bower. It will allow seamless integration for those who live by the Bower :-D
Thank you for your work on this library.
I tried using this on a project recently and while it definitely looks great, the animations can get a bit choppy during the initial loading screen where a lot of JS is being loaded and executed.
I'm wondering if you've already looked into the possibility of using the 3D variants of the CSS transform functions you're using (i.e. translate3d() vs translateX(), and scale3d() vs scaleX())? I think there might be some room for performance increases here since the 3d versions are hardware-accelerated.
Thanks!
@lightningtgc is this project still actively maintained? Looks like the changes over the past year or so haven't been released yet, so just curious. Thanks!
When I try to use two instance of MProgress.js, both of them did not show up. There something did I wrong? Or it doesn't support two instance in same page at this time?
hey @lightningtgc
nice project. guess you meant build not bulid? it's all over in your gulpfile
https://github.com/lightningtgc/MProgress.js/blob/master/gulpfile.js#L11
cheers stephan
$ cat -A node_modules/mprogress/package.json
M-oM-;M-?{$
"name": "mprogress",$
"description": "Mprogress.js creates progress linear bar from Google Material Design.",$
"version": "0.1.1",$
"homepage": "https://github.com/lightningtgc/MProgress.js",$
"author": "tang guichuan <[email protected]>",$
"repository": {$
"type": "git",$
"url": "git://github.com/lightningtgc/MProgress.js.git"$
}, $
"devDependencies": {$
"gulp": "^3.8.10",$
"del": "^1.1.1",$
"gulp-uglify": "^1.1.0",$
"gulp-rename": "^1.2.0",$
"gulp-es6-module-transpiler": "^0.2.1",$
"gulp-stylus": "^2.0.0",$
"gulp-minify-css": "^0.4.5"$
}$
}$
M-oM-;M-?
this is bad
Webpack fails with this package.json
At the moment, if you execute require("mprogress")
in node, the error Error: Cannot find module 'mprogress'
is produced. Adding a main entry in package.json will fix this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.