File size: 2,805 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.CarouselParent {
    position: relative;
    margin-bottom: 30px;
}

.VideoCarousel {
    color: #e5e5e5;
    font-size: 2.4vw;
    overflow-x: auto;
    margin: 0 4% 0 4%;
}

.VideoCarousel::-webkit-scrollbar {
    display: none;
}

.items {
    display: inline-flex;
    height: 80px;
}

.netflix-items {
    display: inline-flex;
    height: 300px;
    overflow: x;
}

.item {
    position: relative;
    display: block;
    transition: transform 500ms;
    width: 100px;
    height: 100%;
    margin-right: 7px;
}

.items .item:focus,
.items .item:hover {
  transform: scale(1.1);
}

.netflix-item {
    position: relative;
    display: block;
    transition: transform 500ms;
    width: 130px;
    height: 100%;
    margin-right: 7px;
}

.netflix-items .netflix-item:focus,
.netflix-items .netflix-item:hover {
    transform: scale(1.1);
}

.CarouselParent:hover > .NavItem {
    display: none;
}

.NavItem {
    display: none;
}

@media(min-width: 600px) {
    .VideoCarousel {
        font-size: 1.4vw;
    }
    .items {
        height: 140px;
    }
    .item {
        width: 230px;
        height: 100%;
        margin-right: 7px;
    }
    .netflix-items {
        height: 420px;
    }
    .netflix-item {
        width: 230px;
        height: 100%;
        margin-right: 7px;
    }
    /* Different animation styles for the first and last items */
    .items .item:first-child:focus,
    .items .item:first-child:hover,
    .items .item:last-child:focus,
    .items .item:last-child:hover {
        transform: scale(1.1);
    }
    .item:first-child:focus~.item,
    .item:first-child:hover~.item {
        transform: translateX(10%);
    }
    .item:focus~.item,
    .item:hover~.item {
        transform: translateX(20%);
    }
    .items .item:not(:first-child):not(:last-child):focus,
    .items .item:not(:first-child):not(:last-child):hover {
        transform: scale(1.3);
    }
    .netflix-item:focus~.netflix-item,
    .netflix-item:hover~.netflix-item {
        transform: translateX(10%);
    }

    .CarouselParent:hover > .NavItem {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 4%;
        color: white;
        background-color: transparent;
        outline: thin;
        border: none;
    }

    .CarouselParent:hover >  .NavItem:hover {
        background-color: black;
    }
    
    .NavItem {
        display: none;
    }
    
    .Left {
        left: 0;
    }
    
    .Right {
        right: 0;
    }
}

@media(min-width: 1650px) {
    .items {
        height: 240px;
    }
    .item {
        width: 330px;
        height: 100%;
        margin-right: 7px;
    }
    .netflix-items {
        height: 520px;
    }
    .netflix-item {
        width: 330px;
        height: 100%;
        margin-right: 7px;
    }
}