forked from dv336699/MMM-RandomPhoto
-
Notifications
You must be signed in to change notification settings - Fork 4
/
MMM-RandomPhoto.css
66 lines (52 loc) · 895 Bytes
/
MMM-RandomPhoto.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
65
:root {
--randomphoto-blur-value: 0px;
}
#randomPhoto img {
opacity: 0;
position: absolute;;
top: 0;
left: 0;
height: 100%;
width: 100%;
object-fit: cover;
}
#randomPhoto img.grayscale {
filter: grayscale(100%);
}
#randomPhoto img.blur {
filter: blur(var(--randomphoto-blur-value));
}
#randomPhotoIcon {
position: absolute;
}
#randomPhotoIcon.rpitop {
top: 5px;
}
#randomPhotoIcon.rpibottom {
bottom: 5px;
}
#randomPhotoIcon.rpiright {
right: 10px;
}
#randomPhotoIcon.rpileft {
left: 10px;
}
#randomPhotoIcon i {
opacity: 1;
}
#randomPhotoIcon i.rpihidden {
opacity: 0;
}
@keyframes fadeOut {
0% { opacity: 1; }
100% { opacity: 0; }
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes fadeInAndOut {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}