I think you can just use window.onscroll
and in your callback just crated steps for document.body.scrollTop
and if scrollTop
hit those steps you can animate different elements on your website. I guess it sounds easier than it really is. The whole website needs to fixed though and you need to take control of the scroll.
But when it comes to library you can use something like https://scrollmagic.io/ or https://scrollrevealjs.org/