michalsnik / aos

Animate on scroll library
MIT License
26.84k stars 2.6k forks source link

Bootstrap 4 Hamburger loading slow after AOS implementation #542

Open imanishpushkar opened 4 years ago

imanishpushkar commented 4 years ago

Hey, I am creating my portfolio website, after using AOS animation, it looks superb,. I am having one issue, after implementing AOS, the hamburger menu in mobile is appearing very slow, can say after scroll. I tried to remove css and checked again, it was working well, so I thinks it's some conflict with AOS. My code for menu is having standard bootstrap format as below

`

mrdnote commented 4 years ago

I have the same problem. aos seems to be pushing the menu to the right, off-screen. The problem is caused by the aos.css not even the js. If I remove the css file it looks ok again.

Seamus-Ohhhh commented 3 years ago

@imanishpushkar had this same issue, the CSS was setting the width of the div containing aos elements to be wider then screen.

issue can be fixed by setting the width of the nav wrapper to 100vw AND/OR by setting the overflow-x to hidden on the div containing the aos elements.

mardianto commented 2 years ago

I try add my style body, html { overflow-x:hidden }

its'work for me