H
H
html-css2019-06-16 18:20:25
Owl Carousel
html-css, 2019-06-16 18:20:25

owl-carousel how to implement larger central block?

owl-carousel how to implement larger central block?
Somewhere I have already seen an approximately similar implementation on owl, but I can’t find it
5d065e36ad189426823702.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava_Fame, 2019-07-26
@Slava_Fame

In documentation https://owlcarousel2.github.io/OwlCarousel2/demos/...
Example:

#slider {
  position: relative;
  .owl-item.active  {
    transform: scale(0.7)
  }
  .owl-item.center  {
    transform: scale(0.7)
  }
  .owl-item.active.center  {
    transform: scale(1)
  }
}

And in JS for the slider itself, the property is center: true,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question