Use the Intersection Observer API to trigger some animations when scrolling the page.
Should check the compatibility if you want to support the old version browser.
With building hundreds of web applications experience.