by gberger · 12y ago · 0 comments
$("#progress-bar").data("progrecss", 60);
Why should I use this lib when I can just roll my own and update it via: $("#progress-bar").css("width", "60%");The CSS makes use of `:after` to show the bar on whichever element you choose meaning that we don't have to create extra progress elements etc.
Using :after means you don't even need to factor it as an element into your existing design, you just place it on top.