Home › Forums › CSS › Fadein animations and anchor links › Reply To: Fadein animations and anchor links
March 22, 2016 at 12:27 pm
#239702
Shikkediel
Participant
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.