My code is:
$('html, body').stop().animate({scrollTop : $('#current').offset().top}, 300, easeInOutExpo);
What it does is scroll the item (#current) to the top of the window.
I want it to scroll the item to – 100px down from top.
How can I achieve that? Please help. Thanks.
Try this :
Gets the current top of the
#currentelement and takes another 100 pixels from that value – leaving the#currentelement 100px from the top of the window