jquery tools : Scroller issue
August 6th, 2010 § Leave a Comment
I was using scrollable plugin of jquery tools for a project.
The issue I was facing was when I make it circular by the following code, I used to have a an empty element right after the last element. This makes a weird transition on the scroller i.e it doesn’t look like it’s circular.
$(document).ready(function(){
$("#scrollable").scrollable({circular: true});
});
I came up with a quick fix since I didn’t have much time to spend on this.
I copied the second element of the list and appended at the last.
Couldn’t think of anything other than this. If you have a better solution feel free to comment.
$('.items').append('<li>'+$('.items li').eq(2).html()+'</li>')
Advertisement