I have added a label to the jquery ui progressbar using this demo.
What I want to do is change the text color depending on if the progress bar is behind the letter.
How can I tell if that has happened?
Its kinda ugly but if you duplicate the label, one outside the bar and one inside, and use overflow: hidden
you can pull it off:
http://jsbin.com/ohiyo/21/
Only tested in Chrome dev and firefox 4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With