It is possible to scroll by fixed number of child items that wil开发者_如何学Pythonl be specified on configuration for jquery-just-another-carousel.
Like when we click Next or Previous link then the carousel will be scrolled by 2 child items.
http://intrepidstudios.com/projects/jquery-just-another-carousel/documentation.aspx
From a cursory look at the source code, it appears that the plugin is only meant to scroll one child at a time. It would take modification of the source code to do what you require. So to save us both a lot of work, have you looked at alternatives?
- jCarousel (see this example)
- Anything Slider
Update: Ok making the modification to scroll just 1/2 the view port window was much easier! I posted a demo for you here. But instead of making the modification permanent, I decided to make it an option - these are the settings I used with the new option "moveHalfViewPortWidth" set to true:
var jac2 = {
enableMouse : false,
childSizeFixed : false,
moveHalfViewPortWidth : true
};
// Setup galleries
$(".jac2").jac(jac2);
download the modified plugin from here.
精彩评论