Transform in css

technical talkiess
0

Transform in css


 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Transform in css</title>
</head>
<style>
    *{
        padding: 0px;
        margin: 0px;
    }
    .container{
        height: 500px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        /* align-content: center; */
        background-color: antiquewhite;
    }
    .box{
        display: flex;
        justify-content: center;
        align-items: center;
        /* align-content: center; */
        background-color: red;

        height: 300px;
        width: 300px;
       
    }
    .box:hover{
        transform: rotate(90deg);
        transform: skew(45deg);
        transform:scale(45deg);


    }
</style>
<body>
    <div class="container">
        <div class="box">
            This is the container
        </div>
    </div>
</body>
</html>
Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)