Set the transition of the <div> element to have a "0.5" second delay before starting. - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the transition of the <div> element to have a "0.5" second delay before starting.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
div {<!--from   ww w  .j a  v  a2s.  c o  m-->
    width: 100px;
    height: 100px;
    background: red;
    transition: width 2s;
    transition-delay: 0.5s;
}

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

<div></div>

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

</body>
</html>

Related Tutorials