How to Load Items into an Infinite Loop
Can you please take a look at
This Demo
let me know how I can load items into the
ul
list as an endless list. as you can see I have this list as following code but I need to add items again and again at the end of each time list.
-
- var item = $(".thumbnail").width();
- var paddT = $(".thumbnail").css('margin-left');
- item = item + 20;
- $(".leftslide").on("click", function () {
- $(".list-inline").animate({
- left: '-=' + item + 'px'
- }, 300);
- });
- $(".rightslide").on("click", function () {
- $(".list-inline").animate({
- left: '+=' + item + 'px'
- }, 300);
- });
Thanks