Is there any way to keep this simple JQuery animation from flashing? http://jsfiddle.net/v3DVf/6/
Is there any way to keep this simple JQuery animation from flashing? http://jsfiddle.net/v3DVf/6/
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s probably because you’re scrolling too fast for jQuery to calculate everything. This seems to help:
That’s caching the scrollTop value rather than recalculating, and omitting the (true, true) from the stop function.
EDIT: Also, get rid of the #container css call, just make it
position: fixed.