Friday, April 1, 2022

The 3DRotete()Method

 The 3DRotete()Method

 

<!DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="STYLESHEET" type="text/css" href="web.css">
    <title>web design</title>
</head>

<body>
<h1>The RotateY()Method</h1>
<p>The roteteY()Method rotete an element around its Yaxis at a given degree</p>
<div>This a normal div element </div>
<div class="mydiv">The div element is rotete Yaxis degree</div>
</body>

</html>

CSS Rotete()Method Style

 div{

    width: 300px;

    height:100px;

    background-color: yellow;

    border:1px solid black;

}

.mydiv{

    transform: rotateY(150deg);

}

No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...