Aos: AOS causing horizontal scroll bar to appear

Created on 24 Oct 2018  路  18Comments  路  Source: michalsnik/aos

This is:

  • Bug
  • Feature request
  • Question
  • Idea


Specifications

Expected Behavior

No horizontal scrollbar

Actual Behavior

AOS causing horizontal scroll bar to appear when browser window is sized under 1000px or so.. seems to happen on the data-aos="fade-right" and data-aos="fade-left". When the container is say 800px wide and the browser is around 850-900 a horizontal scrollbar will appear until you scroll down and the effect is done.

Steps to Reproduce the Problem



1.
2.
3.

Detailed Description

Possible Solution

Most helpful comment

overflow: hidden; for that container, and we can wait for the fix.

All 18 comments

overflow: hidden; for that container, and we can wait for the fix.

Yep,the same problem.

Same issue here. Usning bootstrap4 ".container-fluid" and rows with data-aos="fade-right" and data-aos="fade-left".

overflow: hidden; for that container, and we can wait for the fix.

or perhaps because fade-right and fade-left is the case, overflow-x: hidden; would be the best

Same problem.

This will never be fixed... this library should be erased and not used.

Not solved yet. I can't use overflow-x: hidden because the navbar goes out beyond the page

Sadly, same problem here.
I'd to use overflow-x:hidden on mobile to solve it.

overflow-x: hidden; on the body fixed it for me.

I used overflow-x: hidden in the mother div and solved the problem, excellent library.

Same for me on any size with text-align: center;

I have this issue but only chrome and mobile. overflow-x:hidden doesn't seem to fix it. (its fine on firefox)

overflow-x: hidden; on the body fixed it for me.

SAME HERE ! thanks ! that was a life saver !!!
my div position is absolute, so it seems that the parent div overflow:hidden would not work ! (maybe ! not sure really why)

And what about the shadow of elements that get's hide due to overflow:hidden of parent div?
Ca6pture

header,
section {
width: 100%;
float: left;
overflow: hidden;
}

Well, for me the overflow: hidden thing worked only on desktop view..
but on mobile, I fixed it with something similar...
My whole HTML body is divided into sections..

That's what I put in my CSS file -=And worked fine on mobile=- :
section {
overflow:hidden;
}

Body never worked, using overflow hidden on section was perfect.

overflow-x: hidden; in body alone didn't fix. Had to include following meta tag too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noisypope picture noisypope  路  4Comments

luminawastaken picture luminawastaken  路  3Comments

SueIte picture SueIte  路  3Comments

Dsmol1 picture Dsmol1  路  3Comments

AndTheGodsMadeLove picture AndTheGodsMadeLove  路  3Comments