Whenever I implement the code snippet below:
body {
overflow: hidden;
}
The overflowing element gets clipped. However, when I try this code instead:
body {
overflow: auto;
}
The element is no longer clipped, but now a scrollbar appears where it exceeds the bounds of the container.
I am seeking a solution where the element does not get clipped, nor displays a scrollbar or allows scrolling functionality.