Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to pass level 12 lesson 5

<!DOCTYPE html>
<html>
<head>
<title>CSS transition-duration</title>
<style>
div {
width: 100px;
height: 100px;
background: #4535aa;
transition-property: width;
transition-duration: 5s;
transition-timing-function: ease-in-out;
/ Add delay property here/

}

div:hover {
width: 300px;
height: 200px;
transition-property: height;
transition-delay: 2s;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

please tell me what's wrong with this code for that lesson?
by

1 Answer

kshitijrana14
try this one :
div {
width: 100px;
height: 100px;
background: #4535aa;
transition-property: width , height;
transition-duration: 5s;
transition-timing-function: ease-in-out;
transition-delay: 0s , 2s ;
}

div:hover {
width: 300px;
height:200px;
}

Login / Signup to Answer the Question.