-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathz.html
51 lines (49 loc) · 1.08 KB
/
z.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>图片悬停效果</title>
<style>
figure{
width:500px;
height:400px;
border:10px solid white;
box-shadow:0px 0px 10px green;
overflow:hidden;
transform:scale(1);
}
figure img{
transform:scale(1);
transition:all .3s;
}
figure:hover img{
transform:scale(1.5);
}
figure figcaption{
position:absolute;
bottom:0;
z-index:10;
width:100%;
height:50px;
color:rgba(0,0,0,0);
text-align:center;
line-height:30px;
transition:color 1s, background-color .5s;
}
figure:hover figcaption{
color:black;
font-weight:bold;
background-color:pink;
opacity:0.3;
transform:rotate(360deg);
}
</style>
</head>
<body>
<div>
<figure>
<img src="http://img3.chinaface.com/original/11237tJ5qjng202HsSSj2ZHforVgQ.jpg" alt="">
</figure>
</div>
</body>
</html>