progressbar.js icon indicating copy to clipboard operation
progressbar.js copied to clipboard

Setting custom color variable

Open adriencarbonaro opened this issue 2 years ago • 0 comments

When I use this code :

bar1.bar.animate(1, {
	from : { color: 'var(--my-color)' },
	to   : { color: 'var(--my-color)' }
});
bar2.bar.animate(1, {
	from : { color: 'var(--my-other-color)' },
	to   : { color: 'var(--my-other-color)' }
});

Color is not shown.

When I check value in Chrome inspector, it shows the SVG with stroke="var(--my-color)", but other one stroke="var(NaNmyNaNotherNaNcolor)"

adriencarbonaro avatar Oct 14 '21 13:10 adriencarbonaro