M
M
ma4t2019-01-30 14:54:43
css
ma4t, 2019-01-30 14:54:43

How to set a background for an svg shape?

Hello. Question, there is a figure on svg through polygon. I want this shape to have an image as a background.
Those. if you just make a background in svg, it will be a square. And I need the figure to crop the image, so that this background is visible only inside this figure.
Can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RAX7, 2019-01-30
@ma4t

Use this shape as the SVG clip-path for the image. css.yoksel.ru/css-and-svg-masks

A
Arthur K., 2019-01-30
@amark

I think you will find the answer to this question and even more here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question