0

I'm trying to set a hue-rotate(90deg) filter to a png image. But it changes just background-color. How can I change the image color via hue-rotate?

Here is jsfiddle

1 Answer 1

1

Go through it

img{width: 100px;height: 50px;mix-blend-mode:lighten;background:#fff;margin-bottom:-5px;}
.red{ background-color: #f00;display:inline-block;}
<div class="red">
  <img src="http://truncgil.com.tr/pillow1-main.png">
</div>

1
  • But it converts all parts of image to red. I want to convert just existing part of image
    – sundowatch
    Commented Apr 5, 2019 at 11:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.