Using the intersection observer and some CSS magic!
Here's everything that I did to create this version of my site.
Here's a free WordPress theme I can easily recommend.
If you have a large Contact Form 7 form, this is a great way to unclutter your page.