Answers for "ProgressBar from color to color"

0

ProgressBar from color to color

var bar = new ProgressBar.Line('#container', {
    step: function(state, bar, attachment) {
        bar.path.setAttribute('stroke', state.color);
    }
});

var opts = {
    from: { color: '#000 '},
    to: { color: '#888'}
};
bar.animate(0.5, opts);
Posted by: Guest on October-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language