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