aos icon indicating copy to clipboard operation
aos copied to clipboard

AOS causing horizontal scroll bar to appear

Open nom3d opened this issue 6 years ago • 45 comments

This is:

  • Bug
  • Feature request
  • Question
  • Idea

Specifications

  • AOS version:2.3.4
  • OS:win7
  • Browser:firefox

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

Detailed Description

Possible Solution

nom3d avatar Oct 24 '18 14:10 nom3d

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

sGentiletti avatar Oct 25 '18 21:10 sGentiletti

Yep,the same problem.

BuRTaRT avatar Oct 27 '18 03:10 BuRTaRT

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

jbator avatar Nov 15 '18 13:11 jbator

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

aronmeszaros avatar Nov 19 '18 22:11 aronmeszaros

Same problem.

tomihbk avatar Feb 24 '19 21:02 tomihbk

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

mzvarik avatar Apr 14 '19 01:04 mzvarik

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

antonyleme avatar Jun 13 '19 02:06 antonyleme

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

jonasmarco avatar Jun 14 '19 18:06 jonasmarco

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

nicolaskeller avatar Sep 05 '19 19:09 nicolaskeller

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

CaioSilvaWeb avatar Oct 15 '19 11:10 CaioSilvaWeb

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

siemlohuis avatar Dec 23 '19 15:12 siemlohuis

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

juliebam avatar Feb 13 '20 15:02 juliebam

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)

Ariansdf avatar Feb 25 '20 22:02 Ariansdf

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

AliHussain85 avatar Feb 25 '20 22:02 AliHussain85

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

SaeedEsk avatar Mar 03 '20 09:03 SaeedEsk

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; }

Ateyyah-Buthor avatar Oct 22 '20 08:10 Ateyyah-Buthor

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

volkandkaya avatar Nov 15 '20 05:11 volkandkaya

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

meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"

Dulanka-K avatar Dec 03 '20 19:12 Dulanka-K

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

works for me

edunwa302 avatar Feb 24 '21 07:02 edunwa302

Firstly ı'm so sory for my bad lang. I've same problem. "overflow-x in aos". I many tried but ı finally find. I set css html, body max-width : 99%. In this way works it. Only loss %1 width. İf u dont worry for this, maybe u can use.

766kadir avatar Mar 23 '21 20:03 766kadir

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

meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"

This absolutely works for my problem, thanks bro!!!!

MetalxD117 avatar Apr 02 '21 21:04 MetalxD117

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

thank you very much, it works

ramapermadoni avatar Apr 23 '21 18:04 ramapermadoni

Or you can begin animation from another side xD

Air-Sidney avatar Apr 23 '21 21:04 Air-Sidney

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

meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"

this works for me, thanks buddy

San-tiago avatar Jul 13 '21 07:07 San-tiago

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

meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"

Thank you so much! it worked.

Nwoye-Ezekiel avatar Aug 18 '21 18:08 Nwoye-Ezekiel

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

meta name="viewport" content="width=device-width, initial-scale=1 maximum-scale=1.0, user-scalable=no"

This totally worked for me , only using overflow-x:hidden hides some elements of navbar so use the meta tag for complete working

pkaustubh401 avatar Dec 31 '21 12:12 pkaustubh401

For this to work, add overflow: hidden to html.

html, body{ overflow: hidden}

Hydrodamalis avatar Feb 01 '22 17:02 Hydrodamalis

.container { overflow: hidden; } add css only "container", not html or body. worked for me.

nooroffical avatar Feb 23 '22 07:02 nooroffical

i'm using vue with php, each page has a div with id=app, the following works for me:

body, #app { overflow-x: hidden; }

I guess it just needs to add a overflow-hidden class to a container that wraps around the elements with aos applied hope this helps

snowiewdev avatar Feb 26 '22 10:02 snowiewdev

Unfortunate that this isn't resolved, still. I tried the meta name tag, no dice.. but, overflow-x: hidden on html and body resolved it. I've using a media query to only implement for mobile screens.

@media (max-width: 992px) { html, body { overflow-x: hidden !important; overflow-y: visible !important; } }

jessedmatlock avatar May 06 '22 00:05 jessedmatlock