Skip to content

Instantly share code, notes, and snippets.

View stephband's full-sized avatar

stephband stephband

View GitHub Profile
@stephband
stephband / jQuery.addEasing
Created December 12, 2011 18:06
Add easing functions to jQuery based on the CSS spec for transition timing functions.
// jQuery.addEasing(string)
//
// Interprets and adds easing functions to jQuery.easing
// according to the CSS spec for transition timing functions.
//
// e.g.
// jQuery.addEasing('cubic-bezier(0.4, 0.2, 0.66, 1)');
(function(jQuery, undefined){