Cannot set duration for carouFredSel Slider

Hai Tien picture Hai Tien · Nov 7, 2013 · Viewed 11.4k times · Source

I am using carouFredSel to make Slider, but duration cannot be set. It may run default.

I set like :

$("#foo6").carouFredSel({
    auto: true,
    responsive: true,
    duration: 2000,
    prev: "#prev6",
    next: "#next6",
    scroll: 1,
    pagination: "#pager6",
    mousewheel: true,
    items: {
        visible: 1,
        width: 200
    }
});

Say me solution for my issue.

Answer

Manish picture Manish · Nov 7, 2013

Try

$('#carousel').carouFredSel({
    auto: true,
    responsive: true,
    prev: "#prev6",
    next: "#next6",
    scroll: { items:1,duration: 200}, //set duration here
    pagination: "#pager6",
    mousewheel: true,
    items: {
        visible: 1,
        width: 200
    }
});

Fiddle http://jsfiddle.net/code_snips/bTHnL/