Created
September 17, 2013 07:52
-
-
Save laaptu/6591272 to your computer and use it in GitHub Desktop.
Android smooth interpolator as per Cyril Mottier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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