Thursday 27 May 2021

CSS-animation and keyframe

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>animation and keyframe</title>
</head>
<style>
.container{
    background-colorblue;
    width100vw;
    height300px;
    margin0px 0px;
}
.box{
border2px solid red;
background-colorgreen;
border-radius15px;
width200px;
height150px;
margin15px 5px;
positionrelative;
/* animation-name: upendra1;
animation-duration: 3s;
animation-iteration-count: 2;
animation-direction: initial;
animation-fill-mode: alternate;
/* animation-timing-function: ease-out; */
animation-name: upendra2;
animation-duration10s;
animation-delay5s;
animation-iteration-count10;




}
@keyframes upendra2{
0%{
    top0px;
    left0px;
}
25%{
    top:250px;
    left0px
}
75%{
left250px;
top250px;

}
100%{
top0px;
left250px;

}

}
@keyframes upendra1{
from{
   width:  200px;
}
to{
width800px;
}


}



</style>
<body>
    <div class="container">
        <div class="box">


        </div>
    </div>
</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...