Transition 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>Transition in css</title>
</head>
<style>
.container{
background-color: black;
}
.box{
height: 200px;
width: 200px;
background-color: red;
border: 1px solid white;
transition: background-color;
transition-duration: 2s;
transition-timing-function: ease-in-out;
transition-delay: 2s;
}
.box:hover{
background-color: whitesmoke;
}
</style>
<body>
<div class="container">
<div class="box">
this is the box 1 here
</div>
</div>
</body>
</html>
Thanks you for commenting your questions. I will see question and respond you.