L
L
Lord_Dantes2021-03-30 22:49:40
SVG
Lord_Dantes, 2021-03-30 22:49:40

Why is the SVG mask sometimes reset in mobile?

There is such a mask https://codepen.io/lord-dantes/pen/WNRoXMw
It works great if you compress the screen, it also shrinks proportionally.

But, in my site I use this mask in the Swiper slider and up to 1200px I set the number of displayed records, and when I did this everywhere where this mask is used, the adaptive no longer works. Tell me what is the problem with resetting SVG mask styles? Thank you, I will be grateful for any tips, hints, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2021-03-31
@Lord_Dantes

I found a bug, my figure had a parent and I asked him display: none;apparently because of this, somehow others lost their SVG masks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question