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

Why don't you use 'translateY'. #3

Closed
luciy opened this issue Feb 11, 2015 · 10 comments
Closed

Why don't you use 'translateY'. #3

luciy opened this issue Feb 11, 2015 · 10 comments
Assignees

Comments

@luciy
Copy link

luciy commented Feb 11, 2015

Why don't you use 'translateY'.

@yanhaijing
Copy link
Owner

hi 你好,首先欢迎反馈
这是因为安卓2.3不支持translate
后序准备做个兼容处理,支持translate的优先用translate

@yanhaijing
Copy link
Owner

@luciy
Copy link
Author

luciy commented Feb 11, 2015

如果需要兼容安卓2.3得话确实需要做一个兼容处理,因为利用top并没有translateY性能好,至少在兼容的手机上是这样。
还有就是动画利用transition,而moveTo函数中确定动画结束是利用setTimeout,是否考虑利用webkitTransitionEnd来解决动画结束后回调哦。

@yanhaijing
Copy link
Owner

第一个问题是要解决的,后序会做一个兼容处理,感谢反馈
第二个问题 我还没想好,timeout的好处是可以自定义这个时间,因为可能作者希望本屏动画全部播放完才能切换,而不是切换的动画完成,这个还要在考虑下,感谢反馈

@mask2012
Copy link

没什么,就是来赞一下

@yanhaijing
Copy link
Owner

感谢支持

@jerrylau91
Copy link

关注一下!

@yanhaijing
Copy link
Owner

感谢大家的支持

@yanhaijing yanhaijing self-assigned this Feb 12, 2015
@dolymood
Copy link

dolymood commented Apr 1, 2015

其实不是android2.3不支持transform,是不支持3d transform,还有bug,其实从2.1就开始支持了
,但需要前缀。在fullpage的场景里,使用起来问题不大。参见 https://developer.mozilla.org/en-US/docs/Web/CSS/transform

@yanhaijing
Copy link
Owner

嗯 好的多谢反馈 原来我使用caniuse的方法有误,导致以为从4.0才开始兼容,这个问题过一段时间修好,会在0.2.0版本中带来

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

No branches or pull requests

5 participants