Closed lucasvallenet closed 2 years ago
Usefull SCSS functions
Usage:
z($) Use a z-index based on a scss list to keep control over each z-index values
z($)
strip-units($number) Strip unit from a number
strip-units($number)
sqrt($number) Square root function
sqrt($number)
pow($number, $exp) Power function
pow($number, $exp)
fact($number) Factorial function
fact($number)
pi() Pi reference
pi()
rad($angle) Convert deg to rad
rad($angle)
sin($angle) Calculate the sinus of an angle
sin($angle)
cos($angle) Calculate the cosinus of an angle
cos($angle)
tan($angle) Calculate the tangent of an angle
tan($angle)
Very good idea for the z-index function, I use scss vars to order my z-index list and it's a great thing 🙏
Comments updated and scripts reset
Usefull SCSS functions
Usage:
z($)
Use a z-index based on a scss list to keep control over each z-index valuesstrip-units($number)
Strip unit from a numbersqrt($number)
Square root functionpow($number, $exp)
Power functionfact($number)
Factorial functionpi()
Pi referencerad($angle)
Convert deg to radsin($angle)
Calculate the sinus of an anglecos($angle)
Calculate the cosinus of an angletan($angle)
Calculate the tangent of an angle