Это может быть достигнуто без изменения HTML
<div class="divToFadeOut">abcdefghijklmnopqrstuvwxyz</div>
применить следующий CSS:
.divToFadeOut {
background-color: #CCC;
height: 50px;
width: 350px;
font-size: 36px;
line-height: 50px;
padding-top: 0px;
padding-right: 10px;
padding-bottom: 0px;
padding-left: 10px;
position:relative; /* important */
overflow:hidden; /* important */
}
.divToFadeOut:after {
content:".";
text-indent:9999px;
position:absolute;
top:0px;
right:0px;
width:350px;
height:50px;
background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1)));
background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 );
background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
z-index:9999;
}