I am trying to make a SCSS combination to convert CSS, and I want to pass arguments. However, when using a variable, the brackets are removed from my value.
How it should look after compilation:
transform: translateX(-100px);
my mixin:
@mixin fadeup ($direction, $value) { transform: translate
when calling:
@include fadeup(X, 100px);
which sadly outputs:
transform: translateX 100px;
So, the brackets surrounding the 100px value are missing, and therefore it will not work.
Any ideas how I can store parentheses?
source share