Set that the transition of the <div> element should have a "ease-in-out" speed curve. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set that the transition of the <div> element should have a "ease-in-out" speed curve.

Demo Code

ResultView the demo in separate window

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

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

<div></div>

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

</body>
</html>

Related Tutorials