I
I
Igor2015-10-07 01:46:46
css
Igor, 2015-10-07 01:46:46

How to make an SVG Mask correctly?

example 1
2 - in the example, the vector has a size of no more than 30px and the picture is no more than 30px, but the picture has to be given huge sizes so that it has its own (approximately size) I don't think this is correct either?! why is that? and how to fix?

<image clip-path="url(#hex-mask)" height="461px" width="461px"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Goncharov, 2015-10-15
@word-al

In fact, most likely a mismatch with the viewbox attribute on the SVG element itself. Here is a video that shows how to do this using the `mask-image` CSS property, but of course this does not work everywhere: https://uwebdesign.ru/css-clipping-masking/.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question