aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/playlist/playlist.component.css
blob: 353a094ce6375a9be073b8e93bdeb840ad44f730 (plain) (blame)
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
.ns-wrapper {
    width: 100%;
    max-width: 800px;
    max-height: 600px;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.ns-cards {
    position: relative;
    width: 300%;
    height: 25rem;
    margin-bottom: 20px;
}

.ns-card {
    position: absolute;
    width: 60%;
    height: 100%;
    left: 0;
    right: 0;
    margin: auto;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.ns-card:hover {
    opacity: 1 !important;
}

input[type=radio] {
    display: none;
}

#item-1:checked~.ns-cards #view-item-3,
#item-2:checked~.ns-cards #view-item-1,
#item-3:checked~.ns-cards #view-item-2 {
    transform: translatex(-40%) scale(0.8);
    opacity: 0.5;
    z-index: 0;
}

#item-1:checked~.ns-cards #view-item-2,
#item-2:checked~.ns-cards #view-item-3,
#item-3:checked~.ns-cards #view-item-1 {
    transform: translatex(40%) scale(0.8);
    opacity: 0.5;
    z-index: 0;
}

#item-1:checked~.ns-cards #view-item-1,
#item-2:checked~.ns-cards #view-item-2,
#item-3:checked~.ns-cards #view-item-3 {
    transform: translatex(0) scale(1);
    opacity: 1;
    z-index: 1;
}