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

How to pass level12 lesson 6 (css)

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

div:hover {
width: 300px;
}
</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
<!DOCTYPE html>
<html>
<head>
<title>CSS transition property</title>
<style>
div {
width: 100px;
height: 100px;
background: #4535aa;
/ Add CSS transition property here/
transition: width 5s ease-in-out 3s;
}

div:hover {
width: 300px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>

Login / Signup to Answer the Question.