parent
38172c68f2
commit
38a9339b8c
8 changed files with 8 additions and 292 deletions
|
@ -110,11 +110,9 @@
|
|||
*/
|
||||
scrollToTarget = function(target) {
|
||||
// scroll to each target
|
||||
$(target).velocity('scroll', {
|
||||
duration: 400,
|
||||
offset: -60,
|
||||
easing: 'ease-in-out'
|
||||
});
|
||||
$('html, body').animate({
|
||||
scrollTop: (target.offset().top - 60)
|
||||
}, 400);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue