-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
WOW makes smooth scrolling flicker #146
Comments
Try adding: will-change: top; to the html, body style in your CSS which will turn on hardware acceleration (or the translate3d hack transform: translate3d(0, 0, 0);, with the appropriate vendor prefix). Might help. |
here's a reference, with a little more info as well for backface-visibility and perspective |
My bad, I just realized for this particular case it won't work since you are using Javascript, this is a CSS solution. I'd go to this and start profiling your page and see where the problem is at. There's so much going on with using jquery (or any JS library to animate) vs pure CSS3. You may have something else going on here or it may simply just be jquery as the culprit worth a look, instead of trying to guess as to what is causing the flickering. |
Crap. I forgot to update this. The problem was that I had two things trying to scroll the page and I didn't realize it. It wasn't WOW.js. When one tried to scroll it, the other blocked it and then tried to scroll it, causing the flicker. |
Thanks @cozylife for updating the thread. Closing the issue now :) |
First, I want to say that it's awesome that you built WOW.js. It's perfect for what I need, but I just have one issue with it. WOW.js makes my smooth scrolling flicker no matter how I implement smooth scrolling and my guess is that it's due to the event.preventDefault() not being allowed to execute properly. The code below is the simplest implementation of smooth scrolling I've tried.
The text was updated successfully, but these errors were encountered: