Last active
August 29, 2015 13:56
-
-
Save jeremyckahn/9339820 to your computer and use it in GitHub Desktop.
Shifty/Date.js compatibility fix
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
<!DOCTYPE html> | |
<html> | |
<script src="shifty.js"></script> | |
<script src="date.js"></script> | |
<script> | |
var tweenable = new Tweenable(); | |
tweenable.tween({ | |
from: { 'x': 0 }, | |
to: { 'x': 10 }, | |
duration: 1000, | |
step: function (state) { | |
console.log(state.x); | |
} | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment