Created
September 28, 2011 09:14
-
-
Save polarblau/1247442 to your computer and use it in GitHub Desktop.
jQuery easing extension for 80/20 animations
This file contains 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
jQuery.easing['jswing'] = jQuery.easing['swing']; | |
jQuery.extend(jQuery.easing, { | |
eightyTwentyLinear: function(x, t, b, c, d) { | |
return ((b + c) - (b + c) * 0.8) * (t /= d) + (b + c) * 0.8; | |
}, | |
eightyTwentyQuartOut: function(x, t, b, c, d) { | |
return -((b + c) - (b + c) * 0.8) * (t /= d) * (t - 2) + (b + c) * 0.8; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Demo: http://jsfiddle.net/zAN7Q/