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

Get current elements in viewport. #103

Closed
cincas opened this issue May 30, 2013 · 6 comments
Closed

Get current elements in viewport. #103

cincas opened this issue May 30, 2013 · 6 comments

Comments

@cincas
Copy link

cincas commented May 30, 2013

Hi guys,

Is there any way to get the elements that display in viewport?

I want to add auto adjust feature to always make the nearest element be placed in the middle.

Thanks.

@tkahn
Copy link
Owner

tkahn commented Nov 1, 2013

The short answer is no since I haven't coded a specific feature that tells you when an element is visible in the scroller and when it's not visible. I don't think it would be impossible to implement such a method though, and I think it's an interesting idea. :-)

You could have a method that returns all visible elements.
You could also have a method that returns true/false when you ask if a certain element is visible.

But before I mark this as a future enhancement I'd like to know more about how it would be used and why it would be a useful function? That way it will be more likely that I write something that is truly useful.

@cincas
Copy link
Author

cincas commented Nov 4, 2013

thats not my call then :)
Lets hear from the people.

What I did to solve that issue is by capturing "Stop" event.

Anyway, great plug-in. Good work mate.

Thx

@o-o-o-o-o
Copy link

Please do. It would help tremendously with slideshows with large amounts images as it would facilitate implementing a lazy load functionality

@napishu
Copy link

napishu commented Nov 9, 2014

Need some lazy and deferred function. Yes. Becouse when you have a lot of images we have problems with load all stuff and wait and wait and wait. The basic idea is this. Once the current image has reached viewport - we loading next images (2-3) etc.

@jdschuitemaker
Copy link

Check out this: http://www.appelsiini.net/projects/lazyload

Met vriendelijke groeten, Warm regards,

Jan-Dirk Schuitemaker

On Sun, Nov 9, 2014 at 10:33 AM, napishu [email protected] wrote:

Need some lazy and deferred function. Yes. Becouse when you have a lot of
images we have problems with load all stuff and wait and wait and wait

Reply to this email directly or view it on GitHub
#103 (comment)
.

@napishu
Copy link

napishu commented Nov 9, 2014

@jdschuitemaker how it make work with Smooth-Div-Scroll? My Smooth-Div-Scroll located in the header. See problem #183

@cincas cincas closed this as completed Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants