Browse Source

Fixes #816 adds easing to modal

pull/4188/head
jlukic 10 years ago
parent
commit
cfc99e8250
1 changed files with 7 additions and 1 deletions
  1. 8
      src/modules/modal.js

8
src/modules/modal.js

@ -727,7 +727,7 @@ $.fn.modal.settings = {
context : 'body',
duration : 500,
easing : 'easeOutExpo',
easing : 'easeOutQuad',
offset : 0,
transition : 'scale',
@ -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 );
Loading…
Cancel
Save