Skip to content

Instantly share code, notes, and snippets.

@padolsey
Created December 14, 2009 23:20
Show Gist options
  • Save padolsey/256540 to your computer and use it in GitHub Desktop.
Save padolsey/256540 to your computer and use it in GitHub Desktop.
jQuery.easing.flicker = function(p, t, b, c) {
// p = progression: between 0 and 1
// t = current time
// b = beginning value
// c = change in value
return (Math.random() > .5 ? p : 1) * c + b;
};
// See the demo: http://jsbin.com/ihama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment