Skip to content

Instantly share code, notes, and snippets.

@mattborn
Created July 12, 2012 17:12
Show Gist options
  • Save mattborn/3099421 to your computer and use it in GitHub Desktop.
Save mattborn/3099421 to your computer and use it in GitHub Desktop.
My preferred easing function
// Add easeOutExpo easing
$.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;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment