Created
October 2, 2013 19:49
-
-
Save austinpray/6799505 to your computer and use it in GitHub Desktop.
posts matt matt matt over and over at an increasing rate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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