Thursday, 27 May 2021

Transition in css

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Transition in css </title>
</head>
<style>
    body{
background-colorblack;


    }
    
    
.box{colorwhite;
border2px solid white;
width250px;
height250px;
align-contentcenter;
background-colorred;
margin15px auto;

}
#box1{displayflex
text-aligncenter;
align-contentcenter;
justify-contentcenter;

align-itemscenter;
transition: background-color;
transition-propertyall;
transition-duration2s;
transition-delay2s;
transition-timing-functionease-in-out;
}

#box1:hover{
background-color:blue ;
border-radius15px;
height300px;
width300px;
font-size30px;

}



</style>
<body>

    <div class="container">

        <div class="box" id="box1">
            This is a Box1
        </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...