简体   繁体   中英

In Carousel i want to show 3 divs but when i click i want to move 1 div

I am using a Carousel where it has 3 items and each item contains 3 divs. normally in a click the total item will move but in a click I want to move only one Div is it possible?

<div class="carousel-inner pull-left slides_wrap">
    <div class="active item img_slide slide">
        <div>some content</div>
        <div>some content</div>
        <div>some content</div>
    </div>
    <div class="item img_slide slide">
        <div>some content</div>
        <div>some content</div>
        <div>some content</div>
    </div>
    <div class="item img_slide slide">
        <div>some content</div>
        <div>some content</div>
        <div>some content</div>
    </div>
</div>

By using carousel properties it is possible :

$('#mycarousel').jcarousel({
        easing: 'linear',
        animation: 750,
        speed: 700,
        scroll: 1, 
        wrap: 'circular',
        cycle: true,
        initCallback: mycarousel_initCallback
    });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM