Re:Show HN: progre(c)ss
by gberger on Friday February 07, 2014 @11:06AM
(#7196882)
So, I'd have to do something like this to update it:
Why should I use this lib when I can just roll my own and update it via:
[ Parent
| on HN ]
The first one :)
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.
Oh, indeed, that's definitely an improvement. Didn't realize I could put the 'progrecss' on any element.
Yeah that's the angle I was going for with this so it's just super simple to add it wherever you want it without having to worry about layouts etc. or borking your elements.
Using :after means you don't even need to factor it as an element into your existing design, you just place it on top.