Set transition of width for the <div> element to have: "2" second duration, "ease-in-out" speed curve, and a "0.5" second delay before starting. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set transition of width for the <div> element to have: "2" second duration, "ease-in-out" speed curve, and a "0.5" second delay before starting.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!-- w w  w.j  ava  2 s . c o m-->
    width: 100px;
    height: 100px;
    background: red;
    transition: width 2s ease-in-out 0.5s;
}

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

<p>Hover over the div element above.</p>

</body>
</html>

Related Tutorials