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

是否可以通过样式增加性能 #4

Closed
wll8 opened this issue Dec 14, 2018 · 3 comments
Closed

是否可以通过样式增加性能 #4

wll8 opened this issue Dec 14, 2018 · 3 comments

Comments

@wll8
Copy link

wll8 commented Dec 14, 2018

从下面的图片看起来, 弹幕的移动是通过 js 不断修改 transform 属性。
image

这样会导致 dom 频繁更新, 导致部分手机卡顿。
如果就移动位置而言, 是不是由 js 设置初始位置和目标位置就好了? 移动由 css 去做?

@superhos
Copy link
Owner

superhos commented Dec 15, 2018

感谢建议。
使用JS是因为考虑到中间会加入交互性的操作,CSS动画版本的话在分支版本有实现,另外最新的版本已经开发尾声阶段了,有针对于性能上的优化,欢迎之后继续使用。

@wll8
Copy link
Author

wll8 commented Dec 15, 2018

楼主威武, 这么晚还没睡, 楼主辛苦了。
期待你的大作。

@superhos
Copy link
Owner

HAHA.
Many thanks and good night.

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

2 participants