9bitStudios/flexisel

Scroll entire lot at once.

Closed this issue · 5 comments

Hello,

It would be very handy if this plugin would support option, which would allow to jump to next lot, instead of moving carousel items one by one .

Can this be improvement soon? Or I should try do that myself?

Thanks

Did you try frankenstein?

mnuworld, not yet. Planing to do that tomorrow if plugin developer won't get back by that time.

Hey there frankenstein-uk -- Although this is not officially supported, please see issue #17 for discussion on potential methods to implement this and/or possible alternative plugins that do support this functionality.

@9bitStudios Can you explain how to append more items to the front of the back of the list of items after the scroll animation is complete for infinite scroll effect?

In the animate function that is run inside of methods.scrollLeft() and methods.scrollRight() there is a "complete" callback function that runs after the animation is finished where we do something like the following...

complete : function() {
    childSet.first().insertAfter(childSet.last()); // Get the first list item and put it after the last list item (that's how the infinite effect is made)                                
    methods.adjustScroll();
    canNavigate = true;
}

We only run the childSet.first().insertAfter(childSet.last()); once as we scroll by one item at a time. But if you were scrolling by more than one item, you'd want to move a larger set of items from the front to the back or vice-versa depending on the direction that you scroll.