Home › Forums › CSS › Fadein animations and anchor links › Reply To: Fadein animations and anchor links
March 22, 2016 at 12:02 pm
#239697
Shikkediel
Participant
By the way, did you change the regular size of the header compared to the “sticky” version meanwhile? As it currently stands with different sizes, this will no longer be correct :
scrollTop: target.offset().top-$('header').outerHeight(true);
Since the header’s not using padding or margin, it could have been a bit simpler to start with too :
scrollTop: target.offset().top-$('header').height();