-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
55 lines (49 loc) · 926 Bytes
/
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
overflow: hidden;
background: linear-gradient(45deg, #215FAB, #B3B4B6);
font-family: Helvetica, sans-serif;
color: rgb(211, 211, 211);
display: flex;
justify-content: center;
align-items: center;
}
.container {
width: 500px;
height: 300px;
perspective: 800px;
}
.container:hover > .card {
cursor: pointer;
transform: rotateY(180deg);
}
.card {
height: 100%;
width: 100%;
position: relative;
transition: transform 1500ms;
transform-style: preserve-3d;
}
.front,
.back {
height: 100%;
width: 100%;
border-radius: 2rem;
box-shadow: 0 0 5px 2px rgba(50, 50, 50, 0.25);
position: absolute;
backface-visibility: hidden;
}
.back {
background-color: #3a3a3a;
transform: rotateY(180deg);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5rem;
}