-
Notifications
You must be signed in to change notification settings - Fork 1
/
css.css
79 lines (70 loc) · 1.39 KB
/
css.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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-image: url("https://stepik.org/media/attachments/lesson/374893/world.png");
background-size: cover;
background-repeat: no-repeat;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
font-family: 'Langar', cursive;
text-align: center;
font-size: 30px;
color: blue;
}
.flexbox-container {
position: relative;
display: flex;
font-family: 'Langar', cursive;
justify-content: center;
flex-wrap: wrap;
height: 400px;
width: 700px;
}
.flexbox-item {
background: chartreuse;
border: 1px solid salmon;
border-radius: 10px;
margin: 10px;
text-align: center;
font-size: 20px;
width: 200px;
height: 200px;
transform-style: preserve-3d;
transition: all 1s linear;
backface-visibility: hidden;
z-index: 2;
}
.front, .back {
display: flex;
justify-content: center;
text-align: center;
width: 200px;
height: 200px;
border: 1px solid magenta;
border-radius: 10px;
backface-visibility: hidden;
position: absolute;
}
.front {
z-index: 3;
}
.back {
background-color: aqua;
transform: rotateY(180deg);
z-index: 1;
color: indigo;
}
.flexbox-item:hover {
transform: rotateY(180deg);
background-color: aqua;
}
p {
margin-top: 80px;
}