Skip to content

Commit 7e1e2d5

Browse files
committed
Apply duration to Velocity.js animations
1 parent 3ed9280 commit 7e1e2d5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

dist/jquery.slicknav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@
374374
});
375375
} else if(settings.animations === 'velocity') {
376376
el.velocity("finish").velocity("slideDown", {
377+
duration: settings.duration,
377378
easing: settings.easingOpen,
378379
complete: function() {
379380
afterOpen(trigger, parent);
@@ -398,6 +399,7 @@
398399
} else if (settings.animations === 'velocity') {
399400

400401
el.velocity("finish").velocity("slideUp", {
402+
duration: settings.duration,
401403
easing: settings.easingClose,
402404
complete: function() {
403405
afterClose(trigger, parent);

dist/jquery.slicknav.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.slicknav.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369
});
370370
} else if(settings.animations === 'velocity') {
371371
el.velocity("finish").velocity("slideDown", {
372+
duration: settings.duration,
372373
easing: settings.easingOpen,
373374
complete: function() {
374375
afterOpen(trigger, parent);
@@ -393,6 +394,7 @@
393394
} else if (settings.animations === 'velocity') {
394395

395396
el.velocity("finish").velocity("slideUp", {
397+
duration: settings.duration,
396398
easing: settings.easingClose,
397399
complete: function() {
398400
afterClose(trigger, parent);

0 commit comments

Comments
 (0)