-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
87 lines (73 loc) · 1.28 KB
/
style.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
79
80
81
82
83
84
85
86
87
* {
margin: 0;
padding: 0;
user-select: none;
box-sizing: border-box;
}
body {
background: #fff;
text-align: center;
}
h2 {
text-align: center;
margin-top: 30px;
font-size: 40px;
font-family: sans-serif;
}
.slider {
display: flex;
height: 80%;
width: 100%;
margin: 5% auto 0;
box-sizing: border-box !important;
}
.imagebox {
margin: 0 1%;
flex-grow: 1;
flex-basis: 0;
transition: 1s;
}
.imagebox img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 1s;
object-fit: cover;
}
.imagebox:hover {
width: 320px;
height: 525px;
transition: 1s;
}
.imagebox:hover, .active {
flex-basis: 50%;
}
.slider:hover .active {
flex-basis: 0;
}
@media screen and (min-width: 300px) and (max-width: 800px) {
.slider {
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
}
.imagebox {
width: 250px;
height: 200px;
margin: 30px 0px;
}
.imagebox:hover {
width: 320px;
height: 250px;
}
.imagebox:hover img {
width: 320px;
height: 250px;
flex-basis: 100%;
}
.imagebox img {
width: 250px;
height: 200px;
}
}