$('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?
You May Also Like
- #HTML
OwlCarousel 2 with items counter index methodJul 21, 2021
- #css
- #css
- #css3
Labels:
javascript,
jQuery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment