Setting a group to be % of viewport height dynamically

Thanks to all that have helped with this very useful thread!

How would you go about doing something like this:
Three groups stacked on top of one another.
Group 1 height is 100vh
Group 2 y position starts where Group 1 ends
Group 2’s height is also 100vh
Group 3 y starts where group 2 ends
Group 3’s height is also 100vh

Much thanks!

And I assume you’ll need to release the scroll as mentioned above.

1 Like