D
D
d_e_l_e_x2017-11-09 12:03:28
css
d_e_l_e_x, 2017-11-09 12:03:28

OWL Carousel 2, how to make such a slider?

Hi all. How to make exactly the same slider as in the screenshot below using owl carousel2?
72b2e3272c3f113110594732322a1f36.png
The plugin is connected to the site. In js I wrote the code:

$(document).ready(function(){
    $(".owl-carousel").owlCarousel({
    	nav:true,
    	navText : ['<','>'],
    loop:true, 
    margin:10, 
        autoplay:true,
        smartSpeed:1000, 
        autoplayTimeout:4000,
        items:1, 
        dots:true,
        animateOut: 'fadeOut'
    });
  });

But "owl-nav" is included below the image blocks. How to make navigation exactly at the edges of images? Like on the screen..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
noteblock, 2017-11-09
@d_e_l_e_x

.owl-prev{
  position:absolute;
  top:50%;
  left:0;
  widht:30px;
  height:30px;
  margin-top:-15px;
  line-height:30px;
  color:#fff;
}
.owl-prev{
 то же самое, но right:0;
}

E
Egor Zhivagin, 2017-11-09
@Krasnodar_etc

CSS. You look at the name of the class, you position where you need

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question