Skip to content

Commit

Permalink
Fixes #816 adds easing to modal
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed May 9, 2014
1 parent cc85f42 commit cfc99e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ $.fn.modal.settings = {
context : 'body',

duration : 500,
easing : 'easeOutExpo',
easing : 'easeOutQuad',
offset : 0,
transition : 'scale',

Expand Down Expand Up @@ -758,5 +758,11 @@ $.fn.modal.settings = {
}
};

// Adds easing
$.extend( $.easing, {
easeOutQuad: function (x, t, b, c, d) {
return -c *(t/=d)*(t-2) + b;
}
});

})( jQuery, window , document );

0 comments on commit cfc99e8

Please sign in to comment.