How to put animation in section?

Hi! Need your help!. I have this animation

And i want to put it in the section, not in the body as default. What i should change in script to make it work?

Thank you!

For one easy way you just add ID to the block where you want to add and a JS line for document.getElementById(‘elementId’). Check the screenshot.

This will work but you may have to work on the height and width, because currently it is taking height and width of the whole browser.