Skip to content

Instantly share code, notes, and snippets.

@w-jerome
Created May 22, 2018 12:00
Show Gist options
  • Save w-jerome/cbb0c459937321d6eaadb3948f116eae to your computer and use it in GitHub Desktop.
Save w-jerome/cbb0c459937321d6eaadb3948f116eae to your computer and use it in GitHub Desktop.
Javascript — ThreeJS Animation with Tween
// Setup the animation loop.
function animate(time) {
requestAnimationFrame(animate);
TWEEN.update(time);
}
requestAnimationFrame(animate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment