Interactions on different slider images

I’m trying to replicate the slider on this site but am struggling with the interactions. I can get the first one to fade in, but on the subsequent sliders the interaction has already happened when I go to that slider. How do I get the interaction to only happen when each slider comes into view…?

Thanks all!