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

Doesn't fire anything if element is already visible #16

Open
jimbatamang opened this issue Mar 18, 2015 · 2 comments
Open

Doesn't fire anything if element is already visible #16

jimbatamang opened this issue Mar 18, 2015 · 2 comments

Comments

@jimbatamang
Copy link

Looks like it doesn't fire anything if the element is already visible.

@Romanior
Copy link

The script makes use of the new $.support properties - so it will only work with jQuery 1.3 upwards. If you need to use it with older versions of jQuery, drop a comment, and I'll post an alternative.

The event will only fire when the element comes in to view of the viewport, and out of view. It won't keep firing if the user scrolls and the element remains in view.

Bear in mind if you think the element may already be in view, you may need to kick the scroll event using $(window).trigger('checkInView'). If you include this plugin last (i.e., after you've hooked in to the event) then the script will automatically trigger the kick for you; thus, sending the event to your bound element.

@ksaltik
Copy link

ksaltik commented Dec 29, 2018

This seems not working the fork of protonet is working very fine. But I want to use the offset function it seems that they don't have it.

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

3 participants