I'm currently utilizing the text-only carousel feature found at this jsFiddle link. Below is the code I am using for resizing:
window.addEventListener("resize", resetCarousel);
function resetCarousel(){
setCarouselHeight('#carousel-text');
$('#carousel-text').carousel({
interval: 15000
});
The issue I am encountering is that when the screen size changes, the div containing all the text elements does not resize proportionally (it lacks responsiveness). The setCarouselHeight function is designed to determine the overall height required for all text items to be displayed. I need the setCarouselHeight function to execute every time the screen is resized. However, when I try doing it manually (e.g., window.onresize=func), even after using a timeout period, the item sizes continue to reflect the previous position rather than adjusting to the new sizing. Any suggestions or guidance on this matter would be immensely appreciated.