-
Notifications
You must be signed in to change notification settings - Fork 0
/
cards.css
67 lines (56 loc) · 1.17 KB
/
cards.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
/* :root {
display: flex;
height: 100vh;
min-height: 400px;
background: #222B39;
align-items: center;
justify-content: center;
} */
.movies-sections {
display: flex;
}
.movies-section {
/* background: #E82A4E; */
position: relative;
cursor: pointer;
width: 220px;
height: 125px;
margin-right: 3px;
transition: 0.3s cubic-bezier(0.5, 0, 0.1, 1) transform;
transition-delay: 0.15s;
background-size: cover;
}
.movies-section:hover {
transform: scale(1.8);
}
.movies-section:hover:after {
position: absolute;
top: 0;
/* background: rgba(0, 0, 0, 0.6); */
bottom: 0;
left: 0;
right: 0;
content: "";
}
.movies-section:hover .play {
opacity: 1;
}
.movies-section:hover .description {
opacity: 1;
}
.movies-section.has-positive-translate {
transform: translate(85px);
}
.movies-section.has-negative-translate {
transform: translate(-85px);
}
@keyframes pulse-border {
0% {
transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
opacity: 1;
}
100% {
transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
opacity: 0;
}
}