Skip to content

Instantly share code, notes, and snippets.

@austinpray
Created October 2, 2013 19:49
Show Gist options
  • Save austinpray/6799505 to your computer and use it in GitHub Desktop.
Save austinpray/6799505 to your computer and use it in GitHub Desktop.
posts matt matt matt over and over at an increasing rate.
var time = 0;
var diff = 1000;
var minTime = 0;
var maxTime = 100000;
function easeOutQuad(t, b, c, d) {return -c * (t/=d)*(t-2) + b;}
for( var i = 0, len = diff; i <= len; i++ ) {
(function(s){
setTimeout(function(){
console.log("Matt " + s + " maTt");
$(".matt").append("matt ");
}, time);
})(i);
time = easeOutQuad(i, minTime, maxTime, diff);
console.log(time);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment