Animation in css

technical talkiess
0

 ANIMATion in css:- 


<!DOCTYPE html>

<html lang="en">


<head>

    <meta charset="UTF-8">

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

    <title>Css animation practice</title>

</head>

<style>

    * {

        margin: 0;

        padding: 0;

    }


    .container {

        height: 100vh;

        width: 100vw;

        background-color: red;

        display: flex;

        flex-direction: row;

    }


    .box {

        height: 40px;

        width: 100%;

        margin: 12px;

        background-color: aqua;

        overflowx: hidden;

        /* animation-name: myAnimation;

    animation-duration: 1s;

    animation-timing-function: ease-in;

    animation-delay: 1s;

    animation-iteration-count: infinite; */

        /* animation: name duration timing-function delay iteration-count direction fill-mode;

    animation-paused:;

    */

        animation: myAnimation 5s ease-in 1s infinite alternate;

        /* animation-direction: alternate; */

    }


    @keyframes myAnimation {

        0% {

            transform: translateX(100vw);

            overflowx: hidden;


        }


        100% {

            transform: translateY(0%);

            overflowx: hidden;


        }

    }

</style>


<body>

    <div class="container">

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


        </div>

        <div class="box">


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