Skip to content

Instantly share code, notes, and snippets.

@genesem
Forked from ninnypants/easing.js
Created March 25, 2017 09:36
Show Gist options
  • Save genesem/bad532e442f912ce1f8fb86d5ecae141 to your computer and use it in GitHub Desktop.
Save genesem/bad532e442f912ce1f8fb86d5ecae141 to your computer and use it in GitHub Desktop.
jQuery easing easeInOutExpo
jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment