The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fadein animations and anchor links Reply To: Fadein animations and anchor links


I didn’t change anything.

Okay, I must’ve not been looking at it well enough before. I thought they were the same size – getting the offset correctly will require some new code then, I’ll see what I can come up with.

Edit – this should work better :

scrollTop: target.offset().top-$('.isStuck').height()

Noticing the jumpy behaviour as well, not sure at the moment what’s causing that…

I’m seeing several elements with the same id in the header by the way, they are really meant to be unique identifiers.