-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
60 lines (50 loc) · 978 Bytes
/
index.css
File metadata and controls
60 lines (50 loc) · 978 Bytes
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
body{
padding: 50px 250px;
background-image: url(world.png);
background-size: cover;
}
#quiz{
width: 900px;
display: flex;
flex-wrap: wrap;
}
.card{
height:250px;
width:250px;
background-color: lightblue;
position: relative;
transition: transform 1s ease-in-out;
transform-style: preserve-3d;
margin-right:50px;
margin-bottom:50px;
}
*{
font-family: "Segoe UI";
}
.front{
width: 100%;
height: 100%;
position: absolute;
z-index: 2;
background-color: blanchedalmond;
transition: all 1s ease-in-out;
backface-visibility: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.back{
width: 100%;
height: 100%;
position: absolute;
z-index: 1;
transform: rotateY(180deg);
background: #f44336;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.card:hover{
transform: rotateY(180deg);
}