aFarkas/lazysizes

Pausing Intersection effect when scrolling

anonimusprogramus opened this issue · 0 comments

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