Currently, I am working on a scrolling animation page that is optimized for mobile devices. One issue I am encountering is when an element is larger than the screen size, such as when an image is wider than the mobile device. In this scenario, the user can scroll within the element horizontally. Is there a way to prevent this?
I have noticed that the horizontal scroll position does not change when scrolling through an image, which presents a challenge. Due to the nature of the animations I am using, I cannot set the elements' positions to relative. Additionally, setting overflow-x: hidden does not seem to solve the problem in my case.