We would like to know how to create a Fading Line with -webkit-gradient.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.sexy_line {<!--from ww w. j a v a2s . c om-->
margin: 25px 0;
height: 1px;
background: black;
background: -webkit-gradient(linear, 0 0, 100% 0, from(white), to(white),
color-stop(50%, black));
}
</style>
</head>
<body>
<div class="sexy_line"></div>
</body>
</html>
The code above is rendered as follows: