-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
133 lines (122 loc) · 2.92 KB
/
styles.css
File metadata and controls
133 lines (122 loc) · 2.92 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
html,
body {
overflow: hidden;
width: 100%;
height: 100%;
}
body {
display: flex;
margin: auto;
background-image: url(https://assets.codepen.io/4927073/Group2.png),
url(https://assets.codepen.io/4927073/Background6.png);
background-image: url(https://assets.codepen.io/4927073/Group2.png),
linear-gradient(33deg, #edf2f7, #edf2f7);
background-image: url(https://assets.codepen.io/4927073/Group2.png),
linear-gradient(33deg, #2c303a, #2c303a);
background-size: cover;
background-position: 50% 50%;
}
.envelope {
content: url(https://assets.codepen.io/4927073/Envelope3.png);
width: 430px;
position: absolute;
left: 18%;
top: 3%;
filter: drop-shadow(1.5px 0.75px 1.75px #4d4d4d);
}
.card {
position: relative;
width: 262px;
height: 372px;
margin: auto;
box-shadow: inset 5px 0px 15px 0px rgba(0, 0, 0, 0.1),
3px 0px 3px -2px rgba(0, 0, 0, 0.3);
background-color: #fffffa;
transform: scale(1.05);
left: 12px;
}
.front {
position: absolute;
width: 100%;
height: 100%;
margin: -10px 0px 0px -10px;
margin: auto;
border: 1px solid #e0e0db;
backface-visibility: hidden;
background-color: #e8e6e3;
background-size: contain;
transform-style: preserve-3d;
transform-origin: 0% 50%;
transform: perspective(800px) rotateY(0deg);
transition: all 1s ease-in-out;
filter: saturate(1.125) brightness(1.0125);
}
.card:hover .front {
transform: perspective(800px) rotateY(-170deg);
background-color: rgb(205, 205, 205);
}
.card:hover .back {
transform: perspective(800px) rotateY(-170deg);
box-shadow: 7px 0px 2px 0px rgba(0, 0, 0, 0.3),
inset 2px 0px 15px 0px rgba(0, 0, 0, 0.1);
background-color: #fffffa;
}
.back {
position: absolute;
width: 100%;
height: 100%;
margin: -10px 0px 0px -10px;
margin: auto;
backface-visibility: visible;
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));
box-shadow: inset 5px 0px 15px 0px rgba(0, 0, 0, 0.1),
3px 0px 3px 1px rgba(0, 0, 0, 0.3);
transform-style: preserve-3d;
transform-origin: 0% 50%;
transform: perspective(800px) rotateY(0deg);
transition: all 1s ease-in-out;
/* background-color: #fff; */
background: url("./assets/second.jpg");
background-size: cover;
background-position: center center;
}
.text-container {
width: 80%;
height: 80%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
font-family: Roboto;
color: #929292;
}
.f-box {
width: 100%;
height: 100%;
margin: auto;
background-color: transparent;
box-shadow: 0 2px rgba(0, 0, 0, 0.1);
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.f-box img {
margin-top: 0px;
height: 100%;
width: 100%;
}
@media (max-width: 675px) {
.envelope {
width: 380px;
}
.card {
height: 300px;
width: 200px;
transition: translate 0.5s ease-in-out, scale 0.5s ease-in-out;
}
.card:hover {
translate: 50%;
/* scale: 0.8; */
}
}