-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
114 lines (99 loc) · 1.75 KB
/
Copy pathstyle.css
File metadata and controls
114 lines (99 loc) · 1.75 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');
* {
margin: 0;
padding: 0;
}
body {
font-family: Rubik, serif;
display: grid;
place-content: center;
background: url('images/joshua-rivera-usmhPmT5sj0-unsplash.jpg') fixed no-repeat center;
height: 100vh;
}
.credits {
position: absolute;
bottom: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.5);
padding: 8px 12px;
border-radius: 16px;
}
.credits a {
color: #fff;
}
.container {
position: relative;
width: 300px;
height: 200px;
background: #38383d;
border-radius: 16px;
}
.hint {
position: absolute;
top: 0;
left: 0;
padding: 8px 12px;
}
span {
font-size: 12px;
color: #fff;
}
.stack {
width: 100%;
height: 100%;
border-radius: 16px;
position: relative;
transition: all 0.4s;
transform-origin: 292px 8px;
box-shadow: 0 0 12px #000;
}
.stack:hover {
transform: rotateZ(-10deg);
}
.stack--item {
background: #dedede;
width: 100%;
height: 200px;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.4s;
}
.stack--item {
position: absolute;
right: 0;
top: 0;
transform-origin: 292px 8px;
/* z-index: -1; */
}
h2 {
text-shadow: 0 0 #333;
}
.none {
opacity: 0;
z-index: -1;
}
.show {
opacity: 100;
z-index: 1;
}
.out-animation {
animation: gone 0.4s forwards linear;
}
@keyframes gone {
0% {
opacity: 100%;
}
70% {
transform: rotateZ(-20deg);
opacity: 0;
z-index: -1;
}
100% {
/* transform: rotateZ(-20deg);
opacity: 0; */
z-index: -1;
}
}