-1
I’m working with some images with a zoom effect using transform: scale(x);
. But when you zoom in, especially on mobile, the image goes beyond the side container.
So it doesn’t appear in itself but the size of it exceeds generating that lateral vacuum that makes it possible to pull the screen to the side and there is a blank space on the side, and the overflow: hidden;
is not solving.
Someone knows another way to hide it?
.hoverzoom:hover > img {
transform: scale(1.5);
overflow-y: hidden !important;
overflow-x: hidden !important;
}
You are disabling the zoom with
<meta name="viewport" content="width=device-width, user-scalable=no">
?– Lennon S. Bueno
I think not, it is necessary there in case it would disable the zoom effect on mobile?
– André
Look what’s coming up on my console, but that was coming before the zoom effect I think... The key "width:device-width" is not recognized and Ignored.
– André
did that friend worked. . mt obg
– André
The
overflow: hidden
cannot be in <img>, should be in some <div> parent of her;– Pliavi