-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02 百度一分钱.html
50 lines (50 loc) · 932 Bytes
/
02 百度一分钱.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
background-color: #000;
}
.father{
width: 300px;
height: 300px;
border: 1px solid #000;
margin: 100px auto;
position: relative;
border-radius: 50%;
overflow: hidden;
}
.son1,.son2{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: url(image/light-aio_2296245.png) 0 0 no-repeat;
transition: all 1s cubic-bezier(0.680, -0.550, 0.265, 1.550);
}
.son1{
background-position:-305px bottom;
transform: rotateY(180deg);
}
.son2{
background-position:left bottom;
backface-visibility: hidden;
}
.father:hover .son2{
transform: rotateY(180deg);
}
.father:hover .son1{
transform: rotateY(0deg);
}
</style>
</head>
<body>
<div class="father">
<div class="son1"></div>
<div class="son2"></div>
</div>
</body>
</html>