SISTEM Player in CSS3
by petersendidit
HTML
<div id="bookend_1">
<div class="video">
<video id="video" width="600" height="450" preload="" controls="">
<source src="http://diveintohtml5.org/i/pr6.webm" type="video/webm; codecs='vp8, vorbis'" />
<source src="http://diveintohtml5.org/i/pr6.ogv" type="video/ogg; codecs='theora, vorbis'"/>
<source src="http://diveintohtml5.org/i/pr6.mp4"/>
</video>
</div>
</div>
CSS
#bookend_1{
width: 800px;
height: 600px;
background: #F7931F;
}
#bookend_1:after {
content: "";
position: absolute;
height: 600px;
width: 800px;
background: -webkit-linear-gradient(top, rgba(1, 1, 1, 0) 0%, rgba(1, 1, 1, 0) 550px, rgba(1, 1, 1, .3) 100%);
}
#bookend_1:before {
content: "";
position: absolute;
border-color: #FFF transparent transparent #FFF;
border-style: solid;
border-width: 300px 400px;
height: 0px;
width: 0px;
opacity: .20;
}
#bookend_1 .video{
position: absolute;
top: 90px;
left: 83px;
width: 640px;
height: 450px;
background: #F7931F;
border-radius: 15px;
box-shadow: 0 0 30px rgba(0, 0, 0, .6);
z-index: 2;
}
#bookend_1 .video:before{
content: "";
position: absolute;
top: 0px;
left: 10px;
width: 620px;
height: 450px;
background: rgba(255, 255, 255, .5);
border-radius: 15px;
z-index: 1;
}
video {
position: absolute;
z-index: 10;
left: 20px;
border-radius: 15px;
}