// Roll up a little to show the titles
if (this.options.deepLinkSmudge) {
var offset = this.$element.offset();
- $('html, body').animate({ scrollTop: offset.top }, this.options.deepLinkSmudgeDelay);
+ $('html, body').animate({ scrollTop: offset.top - this.options.deepLinkSmudgeOffset}, this.options.deepLinkSmudgeDelay);
}
/**
*/
deepLinkSmudgeDelay: 300,
+ /**
+ * If `deepLinkSmudge` is enabled, animation offset from the top for the deep link adjustment
+ * @option
+ * @type {number}
+ * @default 0
+ */
+ deepLinkSmudgeOffset: 0,
+
/**
* If `deepLink` is enabled, update the browser history with the open tab
* @option