D
D
Dimka Matsi2017-06-05 16:11:47
SVG
Dimka Matsi, 2017-06-05 16:11:47

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. fc8210c2a82f49249c151aa38ad89dfc.jpg
If anyone knows how and can help me?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dimka Matsi, 2017-06-05
@Matsi

I implemented the process myself, for those who are interested, go here, if it is not clear, write to me!
https://jsfiddle.net/ctboqquo/

M
Maxim Timofeev, 2017-06-05
@webinar

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.

A
Antony Bark, 2017-06-16
@tolfy

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 question

Ask a Question

731 491 924 answers to any question