Created
November 8, 2013 18:04
-
-
Save mikedugan/7375068 to your computer and use it in GitHub Desktop.
short array of jquery easing functions
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
| //usefulness debatable - returns array of all easings given basic easing names | |
| var easings = array( | |
| 'ease_Sine', | |
| 'ease_Quad', | |
| 'ease_Cubic', | |
| 'ease_Quart', | |
| 'ease_Quint', | |
| 'ease_Expo', | |
| 'ease_Circ', | |
| 'ease_Back', | |
| 'ease_Elastic', | |
| 'ease_Bounce' | |
| ); | |
| var i = 0; | |
| for(i=0; i <= easings.length, i++) { | |
| var x = easings[i]; | |
| easings[i] = array(x.replace("_","In"),x.replace("_","Out"),x.replace("_","InOut")); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment