How do I change fill in SVG?

How do I change fill in SVG?
Answer
find(‘svg’); // change the color $svg. find(‘path’). attr(‘fill’, ‘#000’); $e.
…
if you want to change the color dynamically:
  1. Open de svg in a code editor.
  2. Add or rewrite the attribute of fill of every path to fill=”currentColor”
  3. Now, that svg will take the color of your font color so you can do something like:
 

Tìm kiếm

Back
Top