So I have found the following codepen that i am using within a project i am currently working on. I have implemented the code for the most part, however I am not familiar with the usage of the LESS preprocessor and so am trying to convert the styles to SCSS instead.
I am only struggling to convert the following line of code from LESS to SCSS:
transform: rotate(unit(`(Math.random()*8*(Math.random()-0.5)|0+1)*0.25`, turn));
Specifically the area of the line i am stuggling with is the usage of the |
operator between the -0.5) | 0+1
Can anybody explain to me what the purpose of this is and how i may go about converting is to a SCSS fiendly alternative since my SCSS linter throws an error at this line.
Thanks in advance.