-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathViewer.css
60 lines (54 loc) · 1.17 KB
/
Viewer.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.viewer{
margin-top: 30px;
padding: 30px 0px 26px;
display: grid;
grid-gap: 25px;
gap: 25px;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 768px) {
.viewer{
grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
.wrap{
padding-top: 56.25%;
border-radius: 10px;
box-shadow: rgb(0 0 0 / 69%) 0px 26px 30px -10px,
rgb(0 0 0 / 73%) 0px 16px 10px -10px;
cursor: pointer;
overflow: hidden;
position: relative;
transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s;
border: 3px solid rgba(249, 249, 249, 0.1);
}
.wrap > img{
inset: 0px;
display: block;
height: 100%;
object-fit: cover;
opacity: 1;
position: absolute;
transition: opacity 500ms ease-in-out 0s;
width: 100%;
z-index: 1;
top: 0;
}
.wrap > video{
width: 100%;
height: 100%;
position: absolute;
top: 0px;
opacity: 0;
z-index: 0;
}
.wrap:hover{
box-shadow: rgb(0 0 0 / 80%) 0px 40px 58px -16px,
rgb(0 0 0/72%) 0px 30px 22px -10px;
transition: scale(1.05);
border-color: rgba(249, 249, 249, 0);
}
.wrap:hover > video{
opacity: 1;
border-radius: 10px;
}