javascript - Move Owl-Carousel with navigation multiple slides at a time of click - Stack Overflow

Is there any way we can move multiple items in owl carousel with navigation click.Like this in the demo

Is there any way we can move multiple items in owl carousel with navigation click.

Like this in the demo

.html

i want this in navigation link there is a option in slick slider but i want this in owl.

Is there any way we can move multiple items in owl carousel with navigation click.

Like this in the demo

http://www.jqueryscript/demo/Powerful-Customizable-jQuery-Carousel-Slider-OWL-Carousel/demos/custom.html

i want this in navigation link there is a option in slick slider but i want this in owl.

Share Improve this question edited May 16, 2017 at 17:29 Stanislav Kralin 11.5k4 gold badges39 silver badges64 bronze badges asked May 16, 2017 at 13:10 user3591872user3591872 472 silver badges9 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

You should include slideBy: [number] or slideBy: 'page' option, as they describe it on their documentation.

$('.owl-carousel').owlCarousel({
  margin: 10,
  nav: true,
  items: 5,
  slideBy: 5
})
.item {
  background: red;
  text-align: center;
}
<link href="https://owlcarousel2.github.io/OwlCarousel2/assets/css/docs.theme.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis./ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet"/>
<link href="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/assets/owl.theme.default.min.css" rel="stylesheet"/>
<script src="https://owlcarousel2.github.io/OwlCarousel2/assets/owlcarousel/owl.carousel.js"></script>
<div class="owl-carousel owl-theme">
  <div class="item">
    <h4>1</h4>
  </div>
  <div class="item">
    <h4>2</h4>
  </div>
  <div class="item">
    <h4>3</h4>
  </div>
  <div class="item">
    <h4>4</h4>
  </div>
  <div class="item">
    <h4>5</h4>
  </div>
  <div class="item">
    <h4>6</h4>
  </div>
  <div class="item">
    <h4>7</h4>
  </div>
  <div class="item">
    <h4>8</h4>
  </div>
  <div class="item">
    <h4>9</h4>
  </div>
  <div class="item">
    <h4>10</h4>
  </div>
  <div class="item">
    <h4>11</h4>
  </div>
  <div class="item">
    <h4>12</h4>
  </div>
</div>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745148162a4613741.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信