P
P
PM2018-09-16 19:34:09
JavaScript
PM, 2018-09-16 19:34:09

How to change the styles of an SVG object depending on the color received?

All the best!
Please tell me how to implement the following:
There is a plot scheme in svg with a default value of fill: #008000;
how, for example, to change the cursor if the fill value changes to #FF0000?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kovalev, 2018-09-16
@JamesBondMsk

using js, before that you need to mark up your svg file by adding classes or id to the necessary elements and manage them through js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question