forked from drewwilson/atvImg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atvImg.css
64 lines (57 loc) · 1.16 KB
/
atvImg.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
61
62
63
64
.atvImg {
border-radius: 5px;
transform-style: preserve-3d;
-webkit-tap-highlight-color: rgba(#000,0);
}
.atvImg img {
border-radius: 5px;
box-shadow: 0 2px 8px rgba(14,21,47,0.25);
}
.atvImg-container {
position: relative;
width: 100%;
height: 100%;
border-radius: 5px;
transition: all 0.2s ease-out;
}
.atvImg-container.over .atvImg-shadow {
box-shadow: 0 45px 100px rgba(14,21,47,0.4), 0 16px 40px rgba(14,21,47,0.4);
}
.atvImg-layers {
position: relative;
width: 100%;
height: 100%;
border-radius: 5px;
overflow: hidden;
transform-style: preserve-3d;
}
.atvImg-rendered-layer {
position: absolute;
width: 104%;
height: 104%;
top: -2%;
left: -2%;
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
background-size: cover;
transition: all 0.1s ease-out;
}
.atvImg-shadow {
position: absolute;
top: 5%;
left: 5%;
width: 90%;
height: 90%;
transition: all 0.2s ease-out;
box-shadow: 0 8px 30px rgba(14,21,47,0.6);
}
.atvImg-shine {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 5px;
background: linear-gradient(135deg, rgba(255,255,255,.25) 0%,rgba(255,255,255,0) 60%);
}