-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
175 lines (162 loc) · 3.28 KB
/
style.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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
@import 'https://fonts.googleapis.com/css?family=Karla|Slackey|Sriracha';
body {
background: radial-gradient(ellipse at center, #6b6b6b 0%, #2a2a2a 100%);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
perspective: 1000px;
margin: 0;
height: 100vh;
/* overflow: hidden; */
transform: scale(1.5);
}
@media (min-width: 320px) and (max-width: 1023px) {
body {
transform: scale(0.7);
}
}
* {
outline: none;
}
.invitation {
width: 500px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.envelope {
background: #c3ccdb;
width: 100%;
height: 307.6923076923px;
position: relative;
z-index: 1;
}
.envelope.is-open:before, .envelope.is-open:after {
z-index: -2;
}
.envelope:before,
.envelope:after {
content: "";
position: absolute;
bottom: 0;
}
.envelope:before {
right: 0;
border-bottom: 0px solid transparent;
border-top: 307.6923076923px solid transparent;
border-right: 500px solid #c1c6ce;
z-index: 1;
}
.envelope:after {
left: 0;
border-bottom: 0px solid transparent;
border-top: 307.6923076923px solid transparent;
border-left: 500px solid #b1b9c5;
z-index: 1;
}
.flap {
border-right: 250px solid transparent;
border-top: 153.8461538462px solid #c6ccd6;
border-left: 250px solid transparent;
position: absolute;
left: 0;
top: 0;
transform-origin: 50% 0%;
}
/* .envelope.is-open .flap {
z-index: -1 !important;
} */
.mask {
box-sizing: border-box;
-webkit-clip-path: inset(0 0 50% 0);
clip-path: inset(0 0 50% 0);
overflow: hidden;
position: relative;
width: 480px;
height: 2010px;
z-index: 0;
margin: auto;
top: 50%;
transform: translate(0, -50%);
}
.card {
position: relative;
width: 480px;
height: 670px;
margin: auto;
transform-style: preserve-3d;
transform-origin: 50% 10%;
transform: translate(0, 128%) rotateY(0deg);
}
.face {
top: 0;
right: 0;
bottom: 0;
left: 0;
position: absolute;
background: transparent 50% 100%/auto 100% no-repeat;
box-shadow: 0 3px 6x rgba(0, 0, 0, 0.3);
}
.face:last-of-type {
transform: translateZ(-3px) rotateY(180deg);
background-size: 130% auto;
}
.front h1 {
position: relative;
font: normal 3em/0.9 "Slackey", sans-serif;
letter-spacing: -2px;
color: #ffce00;
padding: 30px 0 0;
margin: 0;
-webkit-font-smoothing: subpixel-antialiased;
}
.front h1 img {
width: 95%;
display: block;
margin: auto;
}
.front h1 span {
display: block;
text-align: center;
margin-top: 40px;
padding: 0;
margin: auto;
line-height: 1.3;
}
.face.back {
color: #000;
overflow: hidden;
}
.face.back img {
position: absolute;
top: 60px;
display: inline-block;
width: 90%;
left: 50%;
transform: translate(-50%, 0);
}
button {
font: normal 1.25em "Karla", sans-serif;
padding: 15px 30px;
border-radius: 30px;
background: #e6e6e6;
color: #323639;
border: none;
position: absolute;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
left: 50%;
top: 170px;
transform: translate(-50%, -50%);
transform-origin: 50% 50%;
z-index: 2;
cursor: pointer;
transition: background 0.3s ease-out, color 0.3s ease-out;
}
button.invert {
transform: translate(-50%, -50%);
transform-origin: 50% 50%;
color: #e6e6e6;
background: #323639;
}