Diagonal reflection using CSS3 clip path

by marakoss

HTML

<div class="reflect">
    Diagonal reflection using CSS3 clip path
    <br /> <small>Author <a href="http://profile.idesigned.cz/marakoss">Marek Králík</a> @ <a href="http://www.idesigned.cz/">Image Design</a></small>
</div>

CSS

.reflect{
    position: relative;
}

.reflect:before{
    content:"";
    position: absolute;
    top:0px;left:0px;right:0;bottom:0;
    display: block;   
    background: rgba(255,255,255,0.05);    
-webkit-clip-path: polygon(100% 0, 0% 100%, 100% 100%);
clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 1;
    pointer-events: none;
}

/* Project Specific */
.reflect{
    width: 100%;
    /*background: #282f3a;*/
    height:200px;
    
    font-family: "Helvetica Neue","Helvetica", sans-serif;
    font-weight: 200;
    font-size: 30px;
    letter-spacing: 0.5px;
    line-height: 2;
    text-align: center;
    color: #fff;
    padding: 50px 0;
}

.reflect{
background: -moz-linear-gradient(top, #606c88 0%, #3f4c6b 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#606c88), color-stop(100%,#3f4c6b));
background: -webkit-linear-gradient(top, #606c88 0%,#3f4c6b 100%);
background: -o-linear-gradient(top, #606c88 0%,#3f4c6b 100%);
background: -ms-linear-gradient(top, #606c88 0%,#3f4c6b 100%);
background: linear-gradient(to bottom, #606c88 0%,#3f4c6b 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#606c88', endColorstr='#3f4c6b',GradientType=0 );
}

small{
    font-size: 50%;
}
a{
    color: #fff;
    text-decoration: none;
}