Skip to content

Commit 082b26d

Browse files
committed
Do not animate initial menu collapse when using Velocity.js. Closes #144
1 parent b091e9c commit 082b26d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.slicknav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
});
443443
} else if(settings.animations === 'velocity') {
444444
el.velocity("finish").velocity("slideDown", {
445-
duration: settings.duration,
445+
duration: duration,
446446
easing: settings.easingOpen,
447447
complete: function() {
448448
afterOpen(trigger, parent);
@@ -467,7 +467,7 @@
467467
} else if (settings.animations === 'velocity') {
468468

469469
el.velocity("finish").velocity("slideUp", {
470-
duration: settings.duration,
470+
duration: duration,
471471
easing: settings.easingClose,
472472
complete: function() {
473473
afterClose(trigger, parent);

0 commit comments

Comments
 (0)