【发布时间】:2016-11-14 05:47:52
【问题描述】:
我有下面的 sass 代码,
@include animation(swayb $speed ease infinite 3s, reset 1s ease forwards 5s);
如果我在我的 ubuntu 机器上使用 compass watch 观看它会引发错误,
(_includes/_common.scss 的第 2500 行:Mixin 动画需要 1 个参数 但有 2 个通过了。)
【问题讨论】:
-
可能是您在动画函数中定义了 1 个参数,但在这里使用时您传递的参数超过 1 个,导致此错误。
-
但是这段代码在其他机器上运行良好
-
你能传递带有额外函数括号的参数,例如 +transition-duration((0.2s, 0.5s, 0.2s))。 github.com/Compass/compass/issues/575