$('html, body').animate( { scrollTop: element.offset().top - $('#header').height(); }, {duration: 400 } );
Thursday, 26 May 2016
How can I offset scrollTop to take into account the height of a sticky header?
Subscribe to:
Post Comments (Atom)
$('html, body').animate( { scrollTop: element.offset().top - $('#header').height(); }, {duration: 400 } );
Hello,
No comments:
Post a Comment