最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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>

发布评论

评论列表(0)

  1. 暂无评论