NanoTween uses NanoTween.update global method to handle ticks. So you can copy-paste this code to initialize NanoTween:
NanoTween.update
const animate = (time) => { requestAnimationFrame(animate) NanoTween.update(time) } animate(performance.now())
So we just use requestAnimationFrame and performance.now and are happy
requestAnimationFrame
performance.now
There was an error while loading. Please reload this page.