-
Notifications
You must be signed in to change notification settings - Fork 1
/
section_seven.css
144 lines (121 loc) · 2.56 KB
/
section_seven.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
#wrapper_seven .content{
grid-area: "content";
display: grid;
width: 100%;
margin-top: 10px;
column-gap: 3vw;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 90%;
grid-template-areas:
"scene_1 scene_2 scene_3 scene_4";
}
#scene_1 {
grid-area: scene_1;
}
#scene_2 {
grid-area: scene_2;
}
#scene_3 {
grid-area: scene_3;
}
#scene_4 {
grid-area: scene_4;
}
.scene {
perspective: 600px;
}
.card {
width: 100%;
height: 100%;
position: relative;
transition: transform 1s;
transform-style: preserve-3d;
cursor: pointer;
opacity: 0;
}
.card__face {
position: absolute;
height: 100%;
width: 100%;
backface-visibility: hidden;
border-radius: 20px;
}
@keyframes flip {
0% {transform: rotateY(-90deg);
opacity: 0;}
50% {opacity: 100;}
100% {transform: rotateY(0deg);
opacity: 100;
}
}
/* ---------- card front ---------- */
.card__face--front {
background: linear-gradient(360deg, rgba(47,58,90,1) 0%, rgba(70,81,114,1) 100%);
display: grid;
width: 100%;
column-gap: 50px;
grid-template-columns: 100%;
grid-template-rows: 10vh auto;
grid-template-areas:
"object"
"object_pic";
}
.object {
grid-area: object;
margin-left: 2.5vw;
align-self: center;
}
.object_pic {
grid-area: object_pic;
width: 10vw;
height: auto;
align-self: end;
justify-self: end;
margin-bottom: 1.5vh;
margin-right: 0.75vw;
}
.object_pic, .object_pic_small img {
filter: drop-shadow(0px 0px 5px rgb(44, 255, 234, 0.6));
}
/* ---------- card back ---------- */
.card__face--back {
background:#465172;;
transform: rotateY( 180deg );
display: grid;
width: 100%;
grid-template-columns: 9vh auto;
grid-template-rows: auto auto;
grid-template-areas:
"object_pic_small object_liter"
"object_description object_description";
}
.object_pic_small {
grid-area: object_pic_small;
justify-self: center;
margin-left: 2vh;
margin-top: 2vh;
}
.object_liter {
grid-area: object_liter;
margin-top: 3vh;
margin-left: 8px;
}
.object_liter h2 {
line-height: 20pt;
color:#2CFFEA;
margin-bottom: 0;
}
.object_liter p {
margin-top: 0px;
}
.object_description {
grid-area: object_description;
align-self: end;
justify-self: center;
margin-bottom: 2vh;
width: 80%;
}
/* ---------- card flip ---------- */
.card.is-flipped {
transform: rotateY(-180deg);
}