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

使用transformJS时,希望像CSS那样,属性值的先后顺序会造成影响,要怎么做? #24

Closed
arcturus011 opened this issue Jan 6, 2017 · 4 comments

Comments

@arcturus011
Copy link

比如说我想先rotateX(45deg),再translateZ(100px),如果直接用transformJS写 el.roateX =45;el.translateZ = 100 的话,结果是先translateZ,再rotate的。请问有什么办法可以像CSS那样?

@dntzhang
Copy link
Contributor

dntzhang commented Jan 6, 2017

不可以。transformjs的管线顺序是固定的。因为固定管线也是可以实现任意效果,所以不支持这种顺序影响结果的设计。

@arcturus011
Copy link
Author

那能说下tranformJS的固定管线是什么吗?我使用经验是 translateZ是要先于其他属性的,其他还希望你能补充下

@dntzhang
Copy link
Contributor

dntzhang commented Jan 6, 2017

@arcturus011
Copy link
Author

谢谢!

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