Compass 确实有一个内置的 mixin转换 http://compass-style.org/reference/compass/css3/transform/
我没有看到网站上记录的其他项目的 mixin。如果您需要使用 Compass,您可以轻松编写自己的指南针experimental mixin http://compass-style.org/reference/compass/css3/shared/.
.foo {
@include experimental('animation-name', wheels, webkit, moz, o, ms, not khtml);
@include experimental('animation-duration', 0.25s, webkit, moz, o, ms, not khtml);
// alternate way of setting prefixes
$animation-support: webkit, moz, o, ms, not khtml;
@include experimental('animation-iteration-count', infinite, $animation-support...);
}
编译为:
.foo {
-webkit-animation-name: wheels;
-moz-animation-name: wheels;
-ms-animation-name: wheels;
-o-animation-name: wheels;
animation-name: wheels;
-webkit-animation-duration: 0.25s;
-moz-animation-duration: 0.25s;
-ms-animation-duration: 0.25s;
-o-animation-duration: 0.25s;
animation-duration: 0.25s;
-webkit-animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
-ms-animation-iteration-count: infinite;
-o-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}