Responsive document height

unfortunately you can’t build web page with variable height in Hype.
The content is fixed.
Your method is good for single animations embedded in a standard HTML page

you must use box with fixed height.
this template could be useful