CSS rotate3d() Function (original) (raw)

Last Updated : 30 Aug, 2024

The **rotate3d() function is an inbuilt function that is used to rotate an element around a fixed axis in 3D space.

**Syntax:

rotate3d( x, y, z, angle )

**Parameters: This function accepts four parameters as mentioned above and described below:

Below examples illustrate the rotate3d() function in CSS:

**Example 1:

html `

CSS rotate3d() function

GeeksforGeeks

CSS rotate3d() function



<img class="rotate3d_image" src= 

"https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png" alt="GeeksforGeeks logo">

`

**Output: **Example 2:

html `

CSS rotate3d() function

GeeksforGeeks

CSS rotate3d() function



<div class="GFG">Welcome to GeeksforGeeks</div> 

`

**Output: **Supported Browsers: The browsers supported by rotate3d() function are listed below: