Nguyễn Tuyền
New member
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:
Answer
find(‘svg’); // change the color $svg. find(‘path’). attr(‘fill’, ‘#000’); $e.
…
if you want to change the color dynamically:
- Open de svg in a code editor.
- Add or rewrite the attribute of fill of every path to fill=”currentColor”
- Now, that svg will take the color of your font color so you can do something like: