I have an owl carousel that loads with an automatic width which is determined by the screen size and items. The div .owl-stage has a width set on page load and resizes as the browser is resized. I got the width of the .owl-stage element and applies it to the element .block title which works fine.
$(document).ready(function() {
$(".block-title").css({
'width': ($(".owl-stage").width() + 'px')
});
});
The issue is that .owl-carousel width changes but the .block-title stays set at the initial width that is set on page load. What needs to be added to the function so that .block-title width stays updated as the .owl-stage width changes?