I have a problem with owl-carousel 2. Following is my js code :
$(".top_slider").owlCarousel({
items:1,
navigation: true,
navigationText: ['<div class="top_nav prev"><i class="fa fa-angle-left"> </i></div>', '<div class="top_nav next"><i class="fa fa-angle-right"></i></div>'],
loop: true,
animateOut: 'fadeOut',
})
It works for my default window width. However , when I resize my page it automatically change owl-item width. (I found out that it comes from javascript).
For example it is default 1349px (my screen width).But when I change my width to 1024px owl-item width becomes 256px (1024 / 4) even if I only have 3 slider items. What is the problem and how can I fix this ? Thanks for any help.