Skip to content

Instantly share code, notes, and snippets.

@jeremyckahn
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyckahn/9339820 to your computer and use it in GitHub Desktop.
Save jeremyckahn/9339820 to your computer and use it in GitHub Desktop.
Shifty/Date.js compatibility fix
<!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