-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagr.css
51 lines (51 loc) · 764 Bytes
/
imagr.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
body
{margin: 0;}
#prev{left: 2%;}
#next{right: 2%;}
.pn
{
position: absolute;
top: 50%;
transition-duration: 1s;
transform: translateY(-50%);
width: 10%;
min-width: 5vw;
z-index: 4;
}
.bgdiv
{
z-index: 1;
filter: blur(20px) opacity(0.9);
background-size: cover;
transition-duration: 0.5s;
opacity: 0;
}
.image{z-index:3}
.idiv, .bgdiv
{
position: absolute;
width: 100%;
height: 100%;
}
.bgdiv.visible
{
opacity: 1;
}
.image
{
transition-duration: 0.25s;
position: absolute;
max-width: 100%;
max-height: 100%;
left: 50%;
top: 50%;
transform: translate(-50%,-50%) scale(0.1);
will-change: transform, opacity;
opacity: 0;
}
.image.large
{
transform: translate(-50%,-50%) scale(1);
opacity: 1;
}
img{border:none}