Skip to content
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

Viewport Overflow-X (Horizontal Scrolling): how to solve it via wow.js? #31

Open
JarisGV opened this issue Dec 19, 2019 · 0 comments
Open

Comments

@JarisGV
Copy link

JarisGV commented Dec 19, 2019

I just started using wow.js and testing it in my mobile browser I noticed that the viewport becomes larger creating a horizontal scroll. I think the reason for the overflowing is that the animations like fadeInLeft, fadeInRight and similar ones start outside of the viewport.

1 - Viewport bug: On mobile browsers the width becomes larger than 100%.
Wow - Overflowing Viewport - 1

2 - To solve it I add some lines in my CSS to hide the overflow-x of the <body>.
Wow - Overflowing Viewport - 2

This solve the problem, but I wouldn't like to do a MacGyver on every page I create. In animate-plus.js, for example, this behavior is defined right in the JS file to avoid quick fix in CSS. So my question is:
Is there a way to solve it directly in WOW.JS ?

Best regards,
Jaris GV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant