transform and transition in css

technical talkiess
0

 Transition and transform:- 

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>css transform and transition</title>

</head>

<style>

    .container{

        height: 100vh;

        width: 100vw;

        background-color: antiquewhite;

       

    }

    .item{

        height: 20px;

        background-color: red;

        width: 500px;  

        /* transition: all;

        transition-duration: 2s;

        transition-timing-function: ease-in;

        transition-delay: 1s;  */

        /* cubic-bezier(0.45,-0.1, 0.81, 1.78) ye cubic wala google chrome se liya hai aap usse animation banakar le sakte hai aur aap transition me multiple tag ko bhi dal sakte hai  */

        transitionall 2s cubic-bezier(0.45,-0.1, 0.81, 1.78) 1s;

    }

    .trans{

        transform: translateX(20vh) translateY(20vw);

    }

</style>

<body>

    <div class="container">

        <div class="div item trans">


        </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)