Quick hint: One argument with infinite values for Sass-Mixins

If I develop a website, then there come often small problems again and again. Now I had the problem that I wrote a mixin and want to include more then one value for it, but I declared only one parameter.

Scss:

Error in terminal:

Sass expected only one value, but because of the comma the compiler thinks that it gets two values.

Working solution

Wrap all your styles which you want to give a transition with a clipping. After this the compiler doesn’t give you an error.

Scss:

 CSS:

Checkout my Sass-Styleguide with BEM, OOCSS & SMACSS included with sections like naming-convention, breakpoints as element-queries, handling with variables and much more. For some discussions follow me at twitter.