We would like to know how to create Video Play Button.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
.play-button {<!--from w ww . j a v a2 s. c om-->
height: 40px;
width: 65px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 5px;
position: relative;
}
.play-button:hover {
background-color: rgba(0, 173, 239, 0.9);
}
.play-button:after {
content: "";
display: block;
position: absolute;
top: 10.5px;
left: 24px;
margin: 0 auto;
border-style: solid;
border-width: 9.5px 0 9.5px 17px;
border-color: transparent transparent transparent rgba(255, 255, 255, 1);
}
</style>
</head>
<body>
<div class="play-button"></div>
</body>
</html>
The code above is rendered as follows: