I have made an extremely barebones copy of my code.
Basically, the idea is, when you scroll down, the sections pin in the middle. The image moves up, the text fades out, the next section has text fade in, then that image moves up etc.
On the last section, after scrolling up, there is a massive gap between the bottom of the image and the red footer. I would like to eliminate this gap so that the bottom of the image sits flush with the footer.
I've tried messing with the end attribute, adding negative margin etc but I cant help but feel I am doing something very wrong here. Could somebody advise?
So, the end result should be, when the user is scrolling, once they reach the last section, there should be no massive gap and the image should scroll up as usual, effectively ending the pinning, and be flush with the footer. I have attached an image of what it should look like in the end.