Apply CSS3 Text Shadow Effect
Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix.
If the duration part is not specified, the transition will have no effect, because the default value is 0.
<!DOCTYPE html>
<html>
<head>
<style>
#mybox {
width: 100px;
height: 100px;
background: red;
-webkit-transition: width 2s; /* For Safari 3.1 to 6.0 */
transition: width 2s;
}
#mybox:hover {
width: 300px;
}
</style>
</head>
<body>
<p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p>
<div id="mybox"></div>
<p>Hover over the div element above, to see the transition effect.</p>
</body>
</html>