ScrollToFixed icon indicating copy to clipboard operation
ScrollToFixed copied to clipboard

Scrolling is not smooth with content below fixed element

Open sah-comp opened this issue 10 years ago • 1 comments

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?

sah-comp avatar Aug 06 '14 12:08 sah-comp

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!

bigspotteddog avatar Aug 13 '14 01:08 bigspotteddog