I have three files
.. icons.scss --> mixin code
.. main.scss --> here I call the mixin using @include icon(name)
.. main.js
Everything until now is working perfectly as expected. But what if I want to change the value of ,name' in the mixin from inside the JS file..
We all know we have more than one way to manipulate CSS inside JS.
For example: inside my JS I do something like:
document.getElementById("id").style = '@include icon(name2)';
Its not going to work because I think JS is looking for a property and a value, but how to do it? Is there a way?