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

Level12/lesson5

i have given transition delay but its not submitted.
by

1 Answer

sam5epi0l
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: 5s;
transition-timing-function: ease-in-out;
transition-delay:0s,2s;
/ Add delay property here/
}

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

Login / Signup to Answer the Question.