Prev Demo
Rotate Zmethod()
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> div { width: 300px; height: 100px; background-color: green; border: 1px solid black; } div#myDiv { -webkit-transform: rotateZ(90deg); } </style> </head> <body> <h2>Rotate-z()Method</h2> <div> This a normal div element. </div> <div id="myDiv"> The rotateZ() method rotates an element around its Z-axis at a given value </div> </body> </html>
Note: We DO NOT save your trial code in our database.
Output