Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by progressbarjs.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #ProgressBar #color #color
ADD COMMENT
Topic
Name
2+4 =