J. Shirley![]()
The radial progress bar is a good way to indicate time counting down with multiple color patterns. You simply tell it what percentage is complete and it fills in the pie chart accordingly.
Right now it goes anti-clockwise by default because it's meant to signify time running out (a clock running backwards). However, you can make it go clockwise by inverting the direction and calling decrement, it runs in both directions!
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.07.18-13-22'
}).use('gallery-radial-progress', function(Y) {
var progress = Y.RadialProgress().render('#output'),
timer;
timer = Y.later(100, progress, function() {
progress.increment();
}, null, true);
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info