We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
比如说我想先rotateX(45deg),再translateZ(100px),如果直接用transformJS写 el.roateX =45;el.translateZ = 100 的话,结果是先translateZ,再rotate的。请问有什么办法可以像CSS那样?
rotateX(45deg)
translateZ(100px)
el.roateX =45;el.translateZ = 100
The text was updated successfully, but these errors were encountered:
不可以。transformjs的管线顺序是固定的。因为固定管线也是可以实现任意效果,所以不支持这种顺序影响结果的设计。
Sorry, something went wrong.
那能说下tranformJS的固定管线是什么吗?我使用经验是 translateZ是要先于其他属性的,其他还希望你能补充下
translateZ
这里: https://github.com/AlloyTeam/AlloyTouch/blob/master/transformjs/transform.js#L95-L130
谢谢!
No branches or pull requests
比如说我想先
rotateX(45deg)
,再translateZ(100px)
,如果直接用transformJS写el.roateX =45;el.translateZ = 100
的话,结果是先translateZ,再rotate的。请问有什么办法可以像CSS那样?The text was updated successfully, but these errors were encountered: