-
Notifications
You must be signed in to change notification settings - Fork 1
/
lunpo.css
53 lines (52 loc) · 1.04 KB
/
lunpo.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
#id-lunpo {
width: 100%;
height: 100%;
margin: 0px auto;
perspective:300px;
perspective-origin: 50% 50%;
transform-style: preserve-3d;
position: relative;
}
#id-lunpo .photo {
display: inline-block;
width: 300px;
height: 300px;
position: absolute;
top:50%;
left: 50%;
margin-top:-150px;
margin-left: -150px;
transition: all .5s;
border-radius: 20px;
cursor: pointer;
}
#id-lunpo .photo:hover {
transform: translateZ(150px);
box-shadow: 0px 0px 5px #000;
}
#id-lunpo span {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
overflow: hidden;
-webkit-filter: brightness(80%); /* Chrome, Safari, Opera */
filter: brightness(80%);
}
#id-lunpo span:hover {
-webkit-filter: brightness(100%); /* Chrome, Safari, Opera */
filter: brightness(100%);
box-shadow: 0px 0px 10px #777;
}
#id-lunpo span a {
position: absolute;
bottom: 0px;
width: 100%;
height: 40px;
display: inline-block;
font-size: 2rem;
color: #fff;
text-align: center;
line-height: 40px;
font-weight: 800;
background: #444;
}