-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
83 lines (73 loc) · 1.25 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
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
ul {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: #ccc;
margin: 0;
padding: 0;
}
ul li {
list-style: none;
position: relative;
width: 20%;
height: 100%;
border-right: 1px solid #303031;
float: left;
box-sizing: border-box;
transition: 0.5s;
text-align: center;
overflow: hidden;
}
ul li:nth-child(1) {
background: url('bg1.jpg');
background-size: cover;
background-position: center;
}
ul li:nth-child(2) {
background: url('bg2.jpg');
background-size: cover;
background-position: center;
}
ul li:nth-child(3) {
background: url('bg3.jpg');
background-size: cover;
background-position: center;
}
ul li:nth-child(4) {
background: url('bg4.jpg');
background-size: cover;
background-position: center;
}
ul li:nth-child(5) {
background: url('bg5.jpg');
background-size: cover;
background-position: center;
}
ul:hover li {
width: 10%;
}
ul li:hover {
width: 60%;
}
ul li .content {
position: absolute;
bottom: -100%;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.8);
color: #fff;
opacity: 0;
}
ul li:hover .content {
bottom: 0;
transition: 0.5s;
transition-delay: 0.5s;
opacity: 1;
}