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


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();