forked from woowacourse/perf-basecamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GifItem.module.css
54 lines (49 loc) · 898 Bytes
/
GifItem.module.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
.gifItem {
position: relative;
width: 280px;
height: 280px;
background: radial-gradient(
110.23% 110.23% at 50% 50%,
#bd00ff 0%,
rgba(233, 97, 195, 0.64248) 61.18%,
rgba(232, 109, 198, 0.1) 97.71%
);
overflow: hidden;
transition: all 0.2s ease-in;
border-radius: 4%;
}
.gifItem:hover {
transform: translateY(-0.75rem);
}
.gifImage {
position: relative;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.gifTitleContainer {
position: absolute;
bottom: 0;
width: 100%;
}
.gifTitleBg {
width: 100%;
height: 120px;
background: linear-gradient(
180deg,
rgba(232, 109, 198, 0.1) 0%,
rgba(232, 109, 198, 0.64248) 38.02%,
#bd00ff 71.35%
);
}
.gifTitle {
position: absolute;
bottom: 1rem;
font-style: italic;
font-weight: 700;
font-size: 20px;
line-height: 1.5rem;
padding: 0 1rem;
color: var(--white);
}