Answer the question
In order to leave comments, you need to log in
How to apply a gradient to an image so that the gradient does not go beyond the edges?
Hello. How to make the gradient not go beyond the edges of the image? It is necessary that the gradient be only in the area in which the picture of the knife. The option for svg is fine too, left svg commented out. (On LAN, the background of the picture is transparent). Thanks in advance, feel free to suggest your implementation. Preferably with a picture.
https://jsfiddle.net/5agb4c1x/4/
Answer the question
In order to leave comments, you need to log in
Try changing your browser's encoding first. When you find it, add Header to the code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question