۲۲
آبان
خیلی گشتم تا نتیجه رو از سایتهای زیر پیدا کردم(امر که فیلتر نبودن)
https://stackoverflow.com/questions/22252472/how-to-change-the-color-of-an-svg-element
که میگه:
To change any SVGs color
- Add the SVG image using an
<img>
tag.
<img src="dotted-arrow.svg" class="filter-green"/>
- To filter to a specific color, use the following Codepen(Click Here to open codepen) to convert a hex color code to a CSS filter:
For example, output for #00EE00
is
filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%);
- Add the CSS
filter
into this class.
.filter-green{
filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}