Skip to content

Commit

Permalink
Apply duration to Velocity.js animations
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerWolf committed Sep 19, 2016
1 parent 3ed9280 commit 7e1e2d5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/jquery.slicknav.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@
});
} else if(settings.animations === 'velocity') {
el.velocity("finish").velocity("slideDown", {
duration: settings.duration,
easing: settings.easingOpen,
complete: function() {
afterOpen(trigger, parent);
Expand All @@ -398,6 +399,7 @@
} else if (settings.animations === 'velocity') {

el.velocity("finish").velocity("slideUp", {
duration: settings.duration,
easing: settings.easingClose,
complete: function() {
afterClose(trigger, parent);
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.slicknav.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions jquery.slicknav.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@
});
} else if(settings.animations === 'velocity') {
el.velocity("finish").velocity("slideDown", {
duration: settings.duration,
easing: settings.easingOpen,
complete: function() {
afterOpen(trigger, parent);
Expand All @@ -393,6 +394,7 @@
} else if (settings.animations === 'velocity') {

el.velocity("finish").velocity("slideUp", {
duration: settings.duration,
easing: settings.easingClose,
complete: function() {
afterClose(trigger, parent);
Expand Down

0 comments on commit 7e1e2d5

Please sign in to comment.