JSFiddle - React, Tailwind, and code Playground
by mattography
HTML
<div class="video-controls">
<div class="timeline">
<button class="play btn"></button>
<div class="time-total">0:00</div>
<input type="range" class="timeline-total">
<div class="time-played">0:00</div>
<div class="btn-group-right">
<button class="mute btn"></button>
<button class="fullscreen btn"></button>
</div>
</div>
</div>
CSS
body {
background-color: #000;
}
.video-controls {
position: absolute;
background: rgba(23,26,27,.44);
z-index: 2147483647;/*has to be here for full screen*/
/* default min-height */
height: 12%;
bottom: 0;
left: 0;
right: 0;
margin: auto;
min-width:500px;
}
.video-controls .container-fluid {
position: relative;
left: auto;
top: 50%;
margin-top: -14px;
height: 28px;
line-height: 28px;
width: inherit;
}
/* button & button alignments */
.video-controls .btn {
padding: 0;
border: 0;
max-width: 100%;
height: 100%;
background-color: transparent;
text-indent: 200%;
white-space: nowrap;
overflow: hidden;
vertical-align: top;
outline: 0;
cursor
}
.video-controls .btn-group-right {
position: absolute;
top: -2px;
right: -106px;
height: 100%;
}
.play {
position: absolute;
left: -73px;
top:-2px;
background: url(/testPlayer/img/play.svg) 50% 50% no-repeat;
/* 14 x 19 */
background-size: 17px 16px;
width: 14px;
}
.pause {
position: absolute;
left: -73px;
top:-2px;
background: url(/testPlayer/img/pause.svg) 50% 50% no-repeat;
/* 14 x 19 */
background-size: 17px 16px;
width: 14px;
}
.mute {
background: url(/testPlayer/img/mute.svg) 50% 50% no-repeat;
right: 55px;
background-size: 17px 16px;
/* 26 x 24 */
width: 26px;
}
.fullscreen {
background: url(/testPlayer/img/fullscreen.svg) 50% 50% no-repeat;
right: 15px;
background-size: 17px 14px;
width: 24px;
/* 24 x 19 */
}
.timeline {
position: relative;
height: 100%;
width: 55%;
margin: 0 auto;
color:#fff;
}
.timeline input {
margin-top: -1px;
}
.timeline .time-total {
position: absolute;
top: 39%;
right: -47px;
font-size:14px;
}
.timeline .time-played {
position: absolute;
top: 39%;
left: -37px;
font-size:14px;
}
.timeline-progress,...