What’s the best way to animate the sections of my page so that, as I scroll down, any new section appearing is animated with a fade-in, and the previous one disappears with a fade-out animation, and equivalently for when I scroll up?
I was using a plugin OnScreenDetector (adding 1 element right before each section), setting up all sections as not visible, and when each screen detector is visible, animate and show the next section. But seems like adding a lot of workflow complexity, and when I want to animate “Do every time”, it’s maybe not the best way.
Just keep in mind that all those #section-screens, etc. are the ID attribute of each section I want to animate. It adds a nice fade-in/out and moving animation effect to each section tagged, when such a section is visible on screen.