#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
4
js/base/velocity.min.js
vendored
4
js/base/velocity.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -110,11 +110,15 @@
|
||||||
*/
|
*/
|
||||||
scrollToTarget = function(target) {
|
scrollToTarget = function(target) {
|
||||||
// scroll to each target
|
// scroll to each target
|
||||||
$(target).velocity('scroll', {
|
/*$(target).velocity('scroll', {
|
||||||
duration: 400,
|
duration: 400,
|
||||||
offset: -60,
|
offset: -60,
|
||||||
easing: 'ease-in-out'
|
easing: 'ease-in-out'
|
||||||
});
|
});*/
|
||||||
|
|
||||||
|
$('html, body').animate({
|
||||||
|
scrollTop: (target.offset().top - 60)
|
||||||
|
}, 400);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue