https://jsfiddle.net/3gve5cLo/
Why does the 2nd video not show the gif ?
.container2 {
position: relative;
}
.container2 > .player-buttons1 {
background: url('https://media.tenor.com/images/0a1652de311806ce55820a7115993853/tenor.gif') center center;
height: 35px;
left: 13%;
margin: -64px 0 0 -64px;
position: absolute;
top: 50%;
width: 35px;
z-index: 1;
}
.container2 > .player-buttons {
height: 35px;
left: 13%;
margin: -64px 0 0 -64px;
position: absolute;
top: 75%;
width: 35px;
z-index: 1;
}
.btn1 {
color: var(--nav-text-color);
font-weight: bold;
width: 100px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
text-shadow: 0 -1px rgba(0, 0, 0, 0.5);
cursor: pointer;
transition: all 150ms ease-out;
font-size: 8px;
}
.btn-open {
background-color: #328fff;
border-radius: 8px;
margin: 0px; /* adjust as needed */
padding: 0px; /* adjust as needed */
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5), 0 0 0 rgba(0, 0, 0, 0.3) inset;
}
.btn-open:hover {
background-color: #4CAF50;
color: white;
}
HTML Code
<ul id="autoWidth" class="cs-hidden">
<li class="item-a" data-id="1">
<div class="container2">
<video autoplay muted loop playsinline id="video1" style="width:100%;margin:0 auto; height:100%;">
Discover More http://google.com';">
Problem Right Now: CSS working fine for desktop view ( get what i wanted , just the mobile view button is not showing properly ) The Button is out of video border, and make it unable to show properly