Last active
February 12, 2017 00:03
-
-
Save stabla/8220167d734c68e6742c84b7590b1230 to your computer and use it in GitHub Desktop.
Duration
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 Easing = function (render, duration, easing) { | |
var start = Date.now(); | |
for(var j in toChangeStep) { | |
toChangeStep[j] = (finalState[j] - figure[j])/ duration; | |
// ouput is right, but in fact, it's completly wrong because the animation doesn't have time to go to final value. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment