malsup / cycle2

2nd gen cycling
899 stars 238 forks source link

Is there a way to cycle only things in viewport (or: how to combine with jq.inview)? #765

Open COLABORATI opened 8 years ago

COLABORATI commented 8 years ago

How can I cycle only things (divs) that are in viewport (not cycling things that are not visible and saving browser cpu cycles here)?

I found the jquery.inview plugin - however my attempts to combine this with cycle2 were not successful... it would be very appreciated if anybody would like to give me a hint on how to let cycle2 only cycle stuff that is visible, I believe the inview plugin will be needed for this, or does cycle2 bring its own solution to this?

Thank you very much for your attention!