The log()
CSS function is an exponential function that returns the logarithm of a number.
The logarithm, or log, is the inverse of exponentiation
; it is the number that a fixed base has to be raised to in order to yield the number passed as the first parameter.
In CSS, when a single parameter is passed, the natural logarithm e
, or approximately 2.7182818
, is used, though the base can be set to any value with an optional second parameter.