Wednesday, April 6, 2022

The Transform Porperty

 The Transform Porperty


 <!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 transform Porperty </h1>

<h2>transform rotete(20deg)</h2>

<div class="a">Hello World</div>

<h2>transform skewY(20deg)</h2>

<div class="b">Hello World</div>

<h2>transform Scale(1.5)</h2>

<div class="c">Hello World</div>

</body>


</html>


CSS Transform Porperty Style

 div.a{

    width:150px;

    height:80px;

    background-color: yellow;

    -ms-transform: rotate(20deg);

    transform: rotate(20deg);

}

div.b{

    width:150px;

    height:80px;

    background-color: yellow;

    -ms-transform: skewY(20deg);

    transform: skewY(20deg);

}

div.c{

    width:150px;

    height:80px;

    background-color: yellow;

    -ms-transform:scaleY(1.5);

    transform: scaleY(1.5);

}

No comments:

Post a Comment

JavaScript Animated

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