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

Pausing Intersection effect when scrolling #967

Open
anonimusprogramus opened this issue Sep 12, 2022 · 0 comments
Open

Pausing Intersection effect when scrolling #967

anonimusprogramus opened this issue Sep 12, 2022 · 0 comments
Labels

Comments

@anonimusprogramus
Copy link

A 500 images to be shown, with viewport only fit for 10 images.

A floating bar provides 5 anchor links, to scroll to image #1, #101, #201, #301 and (last) #401.

First time user visits, 10 images lazy loaded (for simplicity).

If user clicks last anchor link (to image 401), the container will scroll down and trigger lazy loading hundreds images.

Questions:

    • Can we have a variable state that can be set false before click and then set true after scrolling?
      ie. like lazySizes.cfg.paused = true/false
  1. If it's not possible, then how's to achieve that scrolling without lazy loading hundreds images but only 10 (as viewport needs)?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant