-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathparav.css
78 lines (77 loc) · 1.62 KB
/
parav.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
.container .card:hover {
flex-grow: 10;
}
.container .card:hover img {
filter: grayscale(0);
}
.container .card:hover .card__head {
text-align: center;
top: calc(100% - 2em);
color: white;
background: rgba(0, 0, 0, 0.5);
font-size: 2em;
transform: rotate(0deg) skew(-5deg);
}
.container .card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 1s ease-in-out;
filter: grayscale(100%);
}
.container .card:not(:nth-child(5)) {
margin-right: 1em;
}
.container {
display: flex;
justify-content: center;
align-items: center;
margin: 10vmin;
overflow: hidden;
transform: skew(5deg);
}
.container .card {
flex: 1;
transition: all 1s ease-in-out;
height: 75vmin;
position: relative;
}
.container .card .card__head {
color: black;
background: rgba(255, 30, 173, 0.75);
padding: 0.5em;
transform: rotate(-90deg);
transform-origin: 0% 0%;
transition: all 0.5s ease-in-out;
min-width: 100%;
text-align: center;
position: absolute;
bottom: 0;
left: 0;
font-size: 1em;
white-space: nowrap;
}
.container .card:hover {
flex-grow: 10;
}
.container .card:hover img {
filter: grayscale(0);
}
.container .card:hover .card__head {
text-align: center;
top: calc(100% - 2em);
color: white;
background: rgba(0, 0, 0, 0.5);
font-size: 2em;
transform: rotate(0deg) skew(-5deg);
}
.container .card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: all 1s ease-in-out;
filter: grayscale(100%);
}
.container .card:not(:nth-child(5)) {
margin-right: 1em;
}