tweenjs/tween.js

automatic animation loop

Open

#342 创建于 2017年6月21日

在 GitHub 查看
 (6 评论) (2 反应) (1 负责人)TypeScript (9,450 star) (1,458 fork)batch import
Featuregood first issuehelp wanted

描述

I suggest that we add a 'TWEEN.animate' convenience method. It would set up a simple requestAnimationFrame animation loop.

function animate(time) {
	requestAnimationFrame(animate);
	TWEEN.update(time);
}
requestAnimationFrame(animate);

In the documentation, we just need to tell users to use this method once before starting any tweens.

We might need a shim for Node.js.

贡献者指南