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

Track elements with respect to the original rect #41

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bgradin
Copy link

@bgradin bgradin commented Apr 1, 2016

Let's say you're using this library to add an animation to an element when it scrolls into/out of view. You choose a slide animation; the element will slide in from the bottom.

The element scrolls into view. The animation starts. The first keyframe puts the element lower than where it started.

Now the element is out of view, so the classToAdd is removed, and the callback is called. Now the element is in view.

The element flickers into eternity.

bgradin added 5 commits April 1, 2016 13:15
This provides better support for animations which can change an element's location on the screen.
This allows the rect to change on window resize, for example
…rt-checker

# Conflicts:
#	dist/jquery.viewportchecker.min.js
#	dist/jquery.viewportchecker.min.js.map
#	src/jquery.viewportchecker.js
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.

2 participants