ScrollToFixed
ScrollToFixed copied to clipboard
Scrolling is not smooth with content below fixed element
Hello,
i am experiencing un-smooth scrolling with content below a fixed element. The fixed element is an image where css max-width: 100% and height: auto is used. It should stay below the header, so i'm using marginTop: 80 on the #detail element. Everything works quite as expected, but it seems that, when scrolling, the first part on the content below does not scroll smooth, but instead snaps below the fixed element.
You may check out the effect here: http://fur.gkad.de/about The content part that reads Form folgt Funktion [...] does not seem to scroll smoothly. The rest of the content scrolls fine again.
I experimented with limit and other marginTop values with no luck.
Could you bring me back on track, please?
I am wondering if the dynamic content is changing the position of the target and, therefore, the position of spacer that keeps the content underneath in place. Try making the marginTop a function as you did with the other elements. Best of luck!