Answer the question
In order to leave comments, you need to log in
Problem with resize in carousel. How to decide?
Hello, connoisseurs)) The problem is in the owl-carusel carousel (I'm not sure if there is a value where), with resize I measure the height of one element and set the same height to the other. The code
$(document).ready(function() {
$(window).resize(function(){
var height_ggg = Math.round($('.special_carusel').height()+20);
$('.special_carusel2').css("height", height_ggg + "px");
});
$(window).resize();
});
Answer the question
In order to leave comments, you need to log in
As far as I understand, resize fires earlier than the script that changes the height in the owl carousel, and therefore resize has the old height on this one pixel. And how then to make it work later? I tried to put the script as the latest, but it doesn't help...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question