D
D
dmitriymuratov2017-10-06 19:32:12
css
dmitriymuratov, 2017-10-06 19:32:12

How to get clipPath of multiple elements to work in SnapSVG?

I have a simple multi-element shape made with svg in SnapSvg and I need to clip the svg to the shape of the shape.
If I clip using one element (ellipse, polygon or circle) then everything works fine, but as soon as I try to apply clipPath with a group of elements, everything disappears. Please help me figure it out. Maybe it clips but inversely?..
Here is the code on codepen
clipPath on lines 39-40...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question