-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (47 loc) · 969 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background: rgb(11, 0, 251);
background: radial-gradient(
circle,
rgba(11, 0, 251, 1) 0%,
rgba(216, 0, 255, 1) 42%,
rgba(0, 212, 255, 1) 100%
);
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
section {
display: grid;
grid-template-columns: repeat(4, 8rem);
grid-template-rows: repeat(4, 8rem);
grid-gap: 1rem;
perspective: 800px;
}
.card {
position: relative;
transform-style: preserve-3d;
transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: rgba(0, 0, 0, 0.9) 0px 5px 15px;
}
.face,
.back {
width: 100%;
height: 100%;
position: absolute;
pointer-events: none;
}
.back {
background: rgb(79,71,196);
background: linear-gradient(90deg, rgba(79,71,196,1) 0%, rgba(0,175,173,1) 100%);
backface-visibility: hidden;
}
.toggleCard {
transform: rotateY(180deg);
}