Skip to content

Instantly share code, notes, and snippets.

@yeco
Forked from padolsey/gist:256540
Created January 8, 2010 21:58
Show Gist options
  • Save yeco/272470 to your computer and use it in GitHub Desktop.
Save yeco/272470 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