How to make the height of the page adjust automatically according to the length of the content

Hello!

I am building my website (blogs and portfolio) with Readymag, fairly new to this powerful tool, but excited!

I would like to have a “view more” button that once clicked on, more cards (content) will show up, and I worked it out with the animation with trigger function. Yet, one issue with this is that, the website height is static, as of now, so the newly loaded cards might go beyond the limit of the page. Any one know how to tackle it? Thank you very much for your insights!

I am attaching the screenshot of how it looks!


To my knowledge it isn’t possible to dynamically change the height of the project based upon another element scaling.