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

How to solve level 12 lesson 5 ?

how to use transition-delay property in CSS?
by

1 Answer

kshitijrana14
Try this one

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

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

Login / Signup to Answer the Question.