-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (73 loc) · 1.4 KB
/
Copy pathstyle.css
File metadata and controls
83 lines (73 loc) · 1.4 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.item {
display: none;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
overflow: hidden;
background-color: var(--background);
}
.item.active {
display: block;
}
.item .title {
font-size: 12rem;
color: #ffffff;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-weight: bold;
text-align: center;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.item .fruit {
width: 90%;
position: absolute;
top: 0%;
left: 50%;
transform: translate(-50%, 0%);
z-index: 3;
}
.item .refri {
z-index: 2;
width: 600px;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
#prev, #next {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
background-color: #eee9;
border: 1px solid #eee9;
color: #eee;
font-size: x-large;
font-family: monospace;
cursor: pointer;
z-index: 4;
border-radius: 50%;
}
#prev {
left: 30px;
}
#next {
right: 30px;
}
@keyframes toActive {
from {
top: 100%;
opacity: 0;
}
}
.item.active img.fruit {
animation: toActive 0.5s ease-in-out 1;
}
.item.active .title {
animation: toActive 0.5s ease-in-out 1;
}