tweenjs/tween.js

automatic animation loop

Open

#342 建立於 2017年6月21日

在 GitHub 查看
 (6 留言) (2 反應) (1 負責人)TypeScript (1,458 fork)batch import
Featuregood first issuehelp wanted

倉庫指標

Star
 (9,450 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南