-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting a horizontal scrollbar due to AOS. When I set overflow-x: hidden, AOS stops working #832
Comments
Try to use overflow-x: hidden for sections |
Hey Air-Sidney. Sadly that didn't work either. When I realized that it really was only affecting mobile browsers (not even my desktop chrome when I made the window really small) I figured it could have something to do with the viewport settings. I added: maximum-scale=1.0, user-scalable=no to the viewport meta setting, and now it works just fine. Thanks for the help. |
Hi guys, Is there a right way to do this? At the moment my website is missing the effects because I only have them in development and I don't want to push this code because of the scrollbar. It only happens on mobile on desktop it works fine. Has anyone an idea on how to solve this issue in a clean way? I'm not very satisfied at the moment with this library or maybe I'm to dumb to implement it in a correct way. Would be happy for any hints! Daniel |
I use now anime js instead of aos ... it works like a charme... soon it will release version 4.0 it got better support and more possibilities! :) |
I am also getting this horizontal scroll bar and, using it with Hubspot CMS for custom modules, it is interacting with Hubspot forms and making dropdown fields in forms disabled. Does anyone know why this would be having this effect? The issue with dropdown fields is only happening on pages where I'm getting this horizontal scroll bar with aos-fade on sections of the page. |
|
thanks so much dude its working |
set overflow-x hidden on body and html tags. Since it is only happening on mobile browsers, try to use this meta tag It prevents zooming in or out. |
worked thanks i only set it on body tag but when i added html aswell it worked |
This is:
Specifications
Steps to Reproduce the Problem
Please see https://www.zneller.nl/
On desktop everything looks fine.
On mobile (you can also use chrome to fake a mobile using the dev tools) I am getting a horizontal scrollbar.
However, when I set overflow-x: hidden on html or body tags, AOS completely stops working.
Please tell me how to remove the horizontal scrolling on mobile.
The text was updated successfully, but these errors were encountered: