I have a slideshow that has different amounts of text on each of the slides. As a result, some slides need more height than others to accomodate the amount of text. Unfortunately, on the slides that need less text than the others, this results in a lot of white space below the text.
I'd like to reduce the height of the slideshow dynamically depending on where the text stops in each slide, so that there is not unnecessary white space below the text, but that it adapts for the text-heavy slides.
I've looked into doing this with a collapse function, but can't seem to figure it out.
For clarity, image below is a slide with less text. You'll see because the bottom of the slideshow is lower to accomodate text on other slides (see next image), there is lots of white space. I just want to dynamically change the height of the slideshow depending on the last element in it.
Longer text slide