Skip to content

Instantly share code, notes, and snippets.

@neojp
Created May 29, 2014 18:50
Show Gist options
  • Select an option

  • Save neojp/3f2f0e5ca2e15e4227aa to your computer and use it in GitHub Desktop.

Select an option

Save neojp/3f2f0e5ca2e15e4227aa to your computer and use it in GitHub Desktop.
Let jQuery use Greensock's Easings
var jQueryGsapEasings = function() {
var _createEase = function(ease) {
return function(p) {
return ease.getRatio(p);
};
},
_easeMap = Ease.map || {};
if ($.easing) {
for (var p in _easeMap) {
$.easing[p] = _createEase(_easeMap[p]);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment