I have many svg
files that I need to add to HTML but still have the opportunity to change the color by class(all at once). I want to render them from JavaScript Array with urls or pathes somehow, but not sure what ti use, as <img>
tag doesn’t have all the svg
functions I need. Saw a solutions with <img>
and filter
, but would be great to have a more convenient one.
It would be best to find pure Java Script solution