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

Animate only when the scroll position changes #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

p01
Copy link

@p01 p01 commented May 14, 2014

The previous test had a few issues:

  1. Didn't call animateElements when reaching the top of the page
  2. Didn't account for float windowHeight and bodyHeight and thus occasionally didn't call animateElements when reaching the bottom of the page
  3. Called animateElements even if the scroll position didn't change

The previous test had a few issues:

1. Didn't call animateElements when reaching the top of the page
2. Didn't account for float windowHeight and bodyHeight and thus occasionally didn't call animateElements when reaching the bottom of the page
3. Called animateElements even if the scroll position didn't change
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

Successfully merging this pull request may close these issues.

1 participant