Skip to content

Setting custom color variable #293

Open
@adriencarbonaro

Description

@adriencarbonaro

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)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions