I’m trying to make my footer sticky but only after users have completely scrolled down the page. So that my footer sticks on the page if people decide to scroll back up. Is this possible within the editor? Or otherwise, what kind of custom code are we looking for here? Can I build that with limited coding experience?
Add it in the Footer but its not so important where you add it…
The fix the footer to the bottom with a width of 100% just select the Class „Section5“ select „Fixed“ and pin it to the bottom. So in the designer it should now stays at the bottom of the screen. Then select „Static“ so it only gets fixed with the script…
If you go to this link: http://manuss-first-project.webflow.io/ After we scroll to the bottom, you see it instantly jump up onto the 4th column of the previous section. Is there any fix for this also? So that it remains still after you scroll to the bottom?
And is there any way I can repay you?
@sam-g, thanks - I removed the Jquery part of the code!
Yeah there is a fix for that… You could add the height of the footer as margin to the last section… So if the footer gets fixed the last section gets a bottom margin of the height of the footer…
Add: (under var element…)
var element2= document.getElementById(“HERE_ID”);
(under element.style.css…)
element2.style.cssText += “margin-bottom: 150px”; <— Here height of the Footer
Looks like I made a mistake somewhere. Seems to be working almost perfect now, although a little bit buggy. Not sure what it is exactly but let me play around with the margins a little bit more!
Anyways, thanks so much
edit: oh it’s not buggy when I log out of webflow to view the page incognito. WOW This is amazing.
Any idea’s on how to make this margin work on all devices? Currently the banner is really neat on desktop but it was buggy on somebodies iPad and on my iphone (8+) yesterday. Buggy as in: the same issue where the footer ‘pops up’ after scroll down and takes up space of the previous section.
I tried working with a VH margin bottom but that brings up other issues and doesn’t seem to solve the problem.
Mmm yes this is what I’m trying but it seems like on Ipad / Iphone the trigger for it to stick is delayed a little bit, which causes a slightly buggy feel. Afterwards, the margin-bottom doesn’t seem to work as the sticky footer moves up too far on the previous section.
Could it be that on IOS devices the trigger works differently? Or that on some devices Javascript loads synchronically with pageload and therefor there is a delay? IDK…
If you use mobile and go to www.growth.nl, does it work fluently?