Skip to content

Instantly share code, notes, and snippets.

@laaptu
Created September 17, 2013 07:52
Show Gist options
  • Save laaptu/6591272 to your computer and use it in GitHub Desktop.
Save laaptu/6591272 to your computer and use it in GitHub Desktop.
Android smooth interpolator as per Cyril Mottier
//as per cyrilmottier.com/2012/05/22/the-making-of-prixing-fly-in-app-menu-part-1/
public class SmoothInterpolator extends LinearInterpolator {
@Override
public float getInterpolation(float input) {
return (float) Math.pow(input - 1, 5) + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment