Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To.get(element) 是否开销过大? #88

Open
beetaa opened this issue Nov 8, 2019 · 0 comments
Open

To.get(element) 是否开销过大? #88

beetaa opened this issue Nov 8, 2019 · 0 comments

Comments

@beetaa
Copy link

beetaa commented Nov 8, 2019

查看了 tween.js 的源码,貌似如果传递的一个 Dom Element 进去,会计算其中的所有数字属性,这样会否存在开销过大的问题?在使用 To.get() 时,是否应该只传入仅包含特定属性的对象?如 To.get({x: 0, y: 0, z: 0}),谢谢指教。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant