Skip to content

Instantly share code, notes, and snippets.

@mattborn
Created September 28, 2011 16:58
Show Gist options
  • Save mattborn/1248479 to your computer and use it in GitHub Desktop.
Save mattborn/1248479 to your computer and use it in GitHub Desktop.
(function($){
// Extend easing options.
$.extend( $.easing, { def: 'easeOutExpo',
easeOutExpo: function (x, t, b, c, d) {
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
},
easeInOutExpo: function (x, t, b, c, d) {
if (t==0) return b;
if (t==d) return b+c;
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
}
});
$(document).ready(function(){
// This would be considered "inside the wrapper."
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment