I have a situation where I want an element to move out of view when clicked, showing only about 10 percent. Here's an example screenshot:
The issue is that when the element hides outside the viewport, the view expands and becomes scrollable.
I've attempted using overflow: hidden;
, but it doesn't seem to work at all. Additionally, this needs to be functional on iOS.
Is there a way to cut the element using JQuery? Are there any alternative solutions?