N
N
nen0y2019-10-14 13:10:30
css
nen0y, 2019-10-14 13:10:30

How to change the value of the fill property in svg?

How to change the value of the fill property in svg?

When you click on the arrow (svg), its color should change, as I understand it, this is done using the fill attribute. But how to change it with jQuery?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
igumenov, 2019-10-14
@nen0y

you need to insert svg not through src and then by simply adding a class,
for example
.item.active svg{fill: #f00}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question