<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
transition: width 2s;
}
div:hover {
width: 300px;
}
</style>
</head>
<body>
<h1>The transition Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss3_transition1 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 16:49:15 GMT -->
</html>