<html>
<head>
</head>
<body>
<div>0.5s</div>
<div>2s, 1s</div>
<div>5s, 2.5s</div>
</body>
</html>
div {
width: 100px;
height: 50px;
padding: 10px;
color: black;
background-color: skyblue;
margin-bottom: 10px;
transition-property: width, opacity;
}
div:nth-child(1) {
transition-duration: 0.5s;
}
div:nth-child(2) {
transition-duration: 2s, 1s;
}
div:nth-child(3) {
transition-duration: 5s, 2.5s;
}
div:hover {
width: 300px;
opacity: 0.6;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.