#26 Use jQuery instead of Velocity.js for animations

This commit is contained in:
Jana Deutschländer 2019-04-11 16:19:59 +02:00
commit 82056ab5a3
2 changed files with 6 additions and 6 deletions

View file

@ -110,11 +110,15 @@
*/
scrollToTarget = function(target) {
// scroll to each target
$(target).velocity('scroll', {
/*$(target).velocity('scroll', {
duration: 400,
offset: -60,
easing: 'ease-in-out'
});
});*/
$('html, body').animate({
scrollTop: (target.offset().top - 60)
}, 400);
};