Answer the question
In order to leave comments, you need to log in
How to crop background using svg shape?
I read about SVG and in the end I don’t understand how to implement a figure to crop the background to it. I usually always did everything through css.
If anyone knows how and can help me?
Answer the question
In order to leave comments, you need to log in
I implemented the process myself, for those who are interested, go here, if it is not clear, write to me!
https://jsfiddle.net/ctboqquo/
It is enough to throw a picture on the back svg of the figure. You can also make 2 white triangles on pure css, without svg at all, you can fill svg with white and overlay it on the image.
there is a solution in Maxim Timofeev's answer Maxim Timofeev , but you Dimka Matsi Dimka Matsi put your answer as a solution, you
decided exactly as Maxim suggested, although he was objected that the solution was wrong. You communicate quite sharply.
off topic moderator
something often (1-2 times a week) began to come across topics where the author puts his answer as a solution.
This is fine? No, I understand when no solution is proposed, but..)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question