-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (96 loc) · 2.64 KB
/
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
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
body {
width: 100vw;
height: 100vh;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
background-image: linear-gradient(45deg, #8B5CF6, #EC4899);
font-family: 'Montserrat', sans-serif;
}
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.carousel {
position: relative;
width: 23rem;
height: 23rem;
-webkit-perspective: 500px;
perspective: 500px;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.card-container {
position: absolute;
width: 100%;
height: 100%;
-webkit-transform: rotateY(calc(var(--offset) * 50deg)) scaleY(calc(1 + var(--abs-offset) * -0.4)) translateZ(calc(var(--abs-offset) * -30rem)) translateX(calc(var(--offset) / var(--abs-offset) * -5rem));
transform: rotateY(calc(var(--offset) * 50deg)) scaleY(calc(1 + var(--abs-offset) * -0.4)) translateZ(calc(var(--abs-offset) * -30rem)) translateX(calc(var(--offset) / var(--abs-offset) * -5rem));
-webkit-filter: blur(calc(var(--abs-offset) * 1rem));
filter: blur(calc(var(--abs-offset) * 1rem));
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.card {
width: 100%;
height: 100%;
padding: 2rem;
background-color: hsl(280deg, 40%, calc(100% - var(--abs-offset) * 50%));
border-radius: 1rem;
color: #9CA3AF;
text-align: justify;
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.card h2 {
text-align: center;
font-size: 2rem;
font-weight: bold;
margin: 0 0 0.7em;
color: #1F2937;
}
.card p, .card h2 {
-webkit-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
opacity: var(--active);
}
.nav {
color: white;
font-size: 5rem;
position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
top: 50%;
z-index: 2;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background: unset;
border: unset;
}
.nav.left {
-webkit-transform: translateX(-100%) translatey(-50%);
transform: translateX(-100%) translatey(-50%);
}
.nav.right {
right: 0;
-webkit-transform: translateX(100%) translatey(-50%);
transform: translateX(100%) translatey(-50%);
}
/*# sourceMappingURL=style.css.map */