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){
@stephband
stephband / gist:955477
Created May 4, 2011 16:03 — forked from jakearchibald/gist:955241
OCD in action
.whatever {
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.5) inset;
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.5) inset;
-o-box-shadow: 0 2px 2px rgba(0,0,0,0.5) inset;
box-shadow: 0 2px 2px rgba(0,0,0,0.5) inset;
}