From 9af90ac8cd07585b051595ebb049c04956658a2a Mon Sep 17 00:00:00 2001 From: Alex Hardin Date: Fri, 4 Dec 2015 16:15:18 -0600 Subject: [PATCH] Added scrollToOffset to the example on doc page --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index 61b6d2c..08f41dd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -33,6 +33,7 @@ Defaults shown below 'onHighlight': function(el) {}, //called when a new section is highlighted 'highlightOnScroll': true, //add class to heading that is currently in focus 'highlightOffset': 100, //offset to trigger the next headline + 'scrollToOffset': 0, // offset to determine how far away from the anchor scolling stops 'anchorName': function(i, heading, prefix) { //custom function for anchor name return prefix+i; },