The automated anchor navigation plugin generates a jump navigation for every anchor with smooth scrolling.
wrapper: "body", // Position for the navigation
selector: "section", // Anchor selector
anchorTitle: "h2", // Title of the section. This is used to get the title for the navigation
class: "anchornav", // The class for the anchornav elements
speed: "fast" // The animation speed
- Link the Plugin
- Call the Function
$('body').anchornav();