CSS exp() function
- Previous Page CSS ellipse() function
- Next Page CSS fit-content() function
- Go to the Previous Level CSS Function Reference Manual
Definition and usage
CSS exp()
The function returns the specified number x power of the natural constant E (Ex)
The natural constant E (2.718281828459045) is the base of the natural logarithm.
Some examples:
exp(0)
Represents 1exp(1)
Represents E (2.718281828459045)exp(-∞)
Represents 0exp(∞)
Represents ∞
Example
Using exp()
Rotating element:
div.a { transform: rotate(calc(1turn * exp(1))); } div.b { transform: rotate(calc(1turn * exp(0))); } div.c { transform: rotate(calc(1turn * exp(-1))); } div.d { transform: rotate(calc(1turn * exp(-0.90))); }
CSS syntax
exp(number)
Value | Description |
---|---|
number | Required. Specify the number for the power of E. |
Technical details
Version: | CSS4 |
---|
Browser support
The numbers in the table represent the first browser version to fully support this function.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
120 | 120 | 118 | 15.4 | 106 |
Related pages
Reference:CSS acos() function
Reference:CSS asin() function
Reference:CSS atan() function
Reference:CSS atan2() function
Reference:CSS calc() function
Reference:CSS cos() function
Reference:CSS hypot() function
Reference:CSS log() function
Reference:CSS mod() function
Reference:CSS pow() function
Reference:CSS sin() function
Reference:CSS sqrt() function
Reference:CSS tan() function
- Previous Page CSS ellipse() function
- Next Page CSS fit-content() function
- Go to the Previous Level CSS Function Reference Manual