#26 Use jQuery instead of Velocity.js for animations
This commit is contained in:
parent
e969f9234e
commit
82056ab5a3
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue