-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab.css
More file actions
82 lines (72 loc) · 1.21 KB
/
lab.css
File metadata and controls
82 lines (72 loc) · 1.21 KB
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
html,body{
height: 100%;
}
ul{
list-style-type: none;
padding: 0;
margin: 0;
}
#container {
position: absolute;
width: 1130px;
height: 100%;
left: 195px;
border-radius: 5px;
-webkit-transition: -webkit-transform 1s;
transition: transform 1s
}
#container li {
display: inline-block;
margin: 30px 70px;
}
.wrapper {
position: relative;
width: 400px;
height: 200px;
overflow: hidden;
border: 1px solid #ddd;
border-radius: 4px;
transition: transform .6s;
}
img {
height: 100%;
width: 100%;
transition: transform .5s;
}
.name {
position: absolute;
left: 0;
top: 80%;
width: 100%;
height: 200px;
color: #5e5c5c;
background-color: #fff;
transition: all .3s;
}
li:hover img{
transform: scale(1.2,1.2);
}
li:hover .name{
color: #FFFFFF;
background-color: rgba(90, 83, 83, 0.81);
transform: translateY(-160px);
}
.name .head{
text-align: center;
padding: 10px;
}
.name .content{
padding: 10px 20px;
text-indent: 2em;
}
.name a{
position: absolute;
right: 0;
bottom: 0;
padding: 5px 8px;
margin: 20px;
color: #fff;
background-color: #ff5e53;
border-radius: 3px;
text-decoration: none;
}