The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Total Page Scroll Control Reply To: Total Page Scroll Control


This is it I think:


By the way… e.preventDefault() prevents the click from instantly snapping to the section (the default behaviour with anchor links) so that it can be animated instead. Where e is the event itself – and its related data.