mirror of
https://gh.wpcy.net/https://github.com/4suredev/Avada-Dynamic-Video-Lightbox.git
synced 2026-04-23 19:42:18 +08:00
60 lines
No EOL
1.2 KiB
CSS
60 lines
No EOL
1.2 KiB
CSS
.dynamic-video-lightbox{
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.dynamic-video-lightbox .thumbnail-wrap{
|
|
width: 100%;
|
|
padding-top: 56.25%;
|
|
position: relative;
|
|
}
|
|
.dynamic-video-lightbox::before {
|
|
content: "";
|
|
background: black;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
opacity: 20%;
|
|
pointer-events: none;
|
|
}
|
|
.dynamic-video-lightbox i.fa{
|
|
position: absolute;
|
|
z-index: 9;
|
|
}
|
|
.dynamic-video-lightbox i.fa::before{
|
|
opacity: 50%;
|
|
border: none;
|
|
color: #fff;
|
|
font-size: 40px;
|
|
transition: all ease-in .2s;
|
|
}
|
|
.dynamic-video-lightbox a{
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.dynamic-video-lightbox a:hover i.fa::before{opacity: 1;}
|
|
.dynamic-video-lightbox img{
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.dynamic-video-lightbox .thumbnail-wrap::before {
|
|
content: '';
|
|
background: rgb(0 0 0 / 25%);
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
top: 0;
|
|
pointer-events: none;
|
|
}
|
|
@media only screen and (max-width: 640px){
|
|
.dynamic-video-lightbox i.fa.fa-play{top: 35%;}
|
|
} |