<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
transition-property: width; /* Safari */
-webkit-transition-duration: 2s; /* Safari */
transition-property: width;
transition-duration: 2s;
}
div:hover {
width: 300px;
}
</style>
</head>
<body>
<h1>The transition-property Property</h1>
<p>Hover over the div element below, to see the transition effect:</p>
<div></div>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_transition-property by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:01:25 GMT -->
</html>