javascript - Slick Carousel - determine last element in carousel? -


I have started using clever carousel () for my project, is there any way or property where I see Can my carriage reach the final element? Or Find What is the current item?

The user should be able to incorporate new elements with arox as soon as the user reaches the final element in the conductor

what I want to achieve is loading infinite lazy is. This is something like a calendar view, where at the beginning only loads the current week, and as the users scroll on Friday, I want to load next week.

There is a section in the docs for lazy loading. What you are asking for it seems that it will do the right thing.

From Docs:

  // To use lazy loading, set the data-lazy feature / / and leave the source on your IMG tag & lt; Img data-lazy = "img / lazifonz 1 page" /> $ ('Lazy'). Crafty ({lazy load: 'bounded', Slide Show: 3, Slideshotcroll: 1});  

So I guess you want to add for new images, just give them the data-lazy feature Hope it will help, but maybe you The lazy loading has already seen the example and some are looking for something completely different :)


Comments