-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
158 lines (140 loc) · 2.96 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
/* Define Color Gradient Custom Properties */
:root {
--main-gradient: linear-gradient(
to bottom,
rgb(231, 34, 238),
rgb(248, 123, 165)
);
}
/* Basic Styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
input,
textarea,
button,
select,
a,
a:link,
a:visited,
a:hover,
a:active {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
text-decoration: none;
}
/* Main Font */
body {
font-family: 'Poppins', sans-serif;
}
/* SNEAKERS CARD BACKGROUND */
.sneakers-card-bg {
position: relative;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: rgb(227, 232, 241);
overflow: hidden;
}
.sneakers-card-bg::before {
content: '';
position: absolute;
bottom: -50%;
width: 200%;
height: 100vh;
background: var(--main-gradient);
box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
transform: rotate(-12deg);
}
/* SNEAKERS CARD */
.sneakers-card {
width: 375px;
height: 375px;
background: var(--main-gradient);
box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.212);
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 2rem;
overflow: hidden;
transition: 0.2s;
}
.sneakers-card .sneakers-image {
position: relative;
width: 70%;
height: 100%;
background: url(./images/ultra-boost.png);
background-image: center;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
transition: 0.2s;
}
.sneakers-card .sneakers-text {
position: relative;
text-align: left;
color: #fff;
}
.sneakers-card h3 {
font-size: 1.25rem;
text-transform: uppercase;
padding-bottom: 0.2rem;
transition: 0.2s;
}
.sneakers-card p {
font-size: 0.875rem;
padding-bottom: 0.875rem;
color: rgba(255, 255, 255, 0.65);
transition: 0.2s;
}
.sneakers-card button {
padding: 0;
border: none;
background: rgb(238, 241, 243);
color: rgba(12, 13, 24, 0.7);
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
text-transform: uppercase;
font-size: 0.875rem;
font-weight: 600;
padding: 0.437rem 0.875rem;
transition: 0.2s;
cursor: pointer;
}
/* Sneakers Card Hover Animations */
.sneakers-card:hover {
transform: rotate(-2deg);
transition: 0.5s;
}
.sneakers-card:hover .sneakers-text p {
transform: translateX(-370px);
opacity: 0;
transition: 0.6s;
}
.sneakers-card:hover .sneakers-image {
transform: scale(1.4);
transition: 0.5s;
}
.sneakers-card:hover .sneakers-text h3 {
transform: translateY(2rem);
transition: 0.4s;
}
.sneakers-card:hover button {
transform: scale(1.4) translate(8px, -2px);
transition: 0.3s;
}
.sneakers-card button:hover {
background: rgba(238, 241, 243, 0.9);
}
/* Sneakers Card Button Active Animation */
.sneakers-card button:active {
background: rgba(12, 14, 22, 0.808);
color: #fff;
}