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

I need level 12 llesson 4 answer

add transition timing function for height and width transition value
by

1 Answer

sam5epi0l
Hey Chhaya, 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: 2s, 4s;
transition-timing-function:ease-in,ease-out;
/ Add CSS property here/
}

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

Let me know if it doesn't work.

Login / Signup to Answer the Question.