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

How to solve level 12 lesson 3

to make the duration of the height transition as 6s.
by

1 Answer

sam5epi0l
Hi there, try this code:

<!DOCTYPE html>
<html>
<head>
<title>CSS transition-duration</title>
<style>
div {
width: 100px;
height: 100px;
background: #4535aa;
transition-property: width,height;
transition-duration: 4s,6s;
}

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

Login / Signup to Answer the Question.