【发布时间】:2015-12-07 16:53:42
【问题描述】:
目前,CSS3 转换语法是这样设计的:
transform: translate(350px, -350px) rotate(360deg);
我只是好奇为什么它不是这样单独设计的:
translate: 350px, -350px;
rotate: 360deg;
或者带有明确的前缀:
transform-translate: 350px, -350px;
transform-rotate: 360deg;
有人对此有想法吗?
【问题讨论】:
-
A transformation is applied to the coordinate system an element renders in through the transform property. This property contains a list of transform functions. The final transformation value for a coordinate system is obtained by converting each function in the list to its corresponding matrix like defined in Mathematical Description of Transform Functions, then multiplying the matrices.。所以,
transform是一个属性,translates 和rotates 是应用于矩阵的函数。
标签: css web css-transitions css-transforms