destination_threshold: 20, // pixels from the top of destination for it to be considered active
throttle_delay: 30, // calculation throttling to increase framerate
fixed_top: 0, // top distance in pixels assigend to the fixed element on scroll
- offset_by_height: true // whether to offset the destination by the expedition height. Usually you want this to be true, unless your expedition is on the side.
+ offset_by_height: true, // whether to offset the destination by the expedition height. Usually you want this to be true, unless your expedition is on the side.
+ duration: 700, // animation duration time
+ easing: 'swing' // animation easing
},
init : function (scope, method, options) {
$('html, body').stop().animate({
'scrollTop': scroll_top
- }, 700, 'swing', function () {
+ }, settings.duration, settings.easing, function () {
if(history.pushState) {
history.pushState(null, null, '#'+hash);
}