CarouFredSel.js を使用して、一度に 1 つの項目をスクロールするカルーセルを作成しています。現在、次または前をクリックすると画面からスクロールアウトしますが、新しいものが表示されるだけなので、スライドインしたい.
これがコードです
jQuery(function () {
jQuery('#foo2').carouFredSel({
prev: '#prev2',
next: '#next2',
auto: false,
circular: true,
infinite: true,
responsive: true,
direction: "left",
width: null, // automatically calculated
height: null, // automatically calculated
align: "center",
items: {
visible: 1,
start: "random"
}
});
});
また、これはフィドルにあります jsfiddle.net/TCAb3/