-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path12.html
57 lines (49 loc) · 1.17 KB
/
12.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
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>12</title>
<base href="./images/" target="_blank">
<style>
img:hover{
width:100px;
height:100px;
transform: rotate(360deg);
}
img{
position: absolute;
top:50px;
left:100px;
/* transition:width 2s,height 3s;*/
transition: width 2s, height 2s,transform 2s;
-webkit-transition:width 2s,height 2s,transform 2s;
}
div#div1{
width:300px;
height: 300px;
background: gray;
animation:dh 2s linear 1s infinite;
-webkit-animation:dh 2s linear 1s infinite;
}
@keyframes dh{
from{
background: red;
}
to{
background: yellow;
}
}
@-webkit-keyframes dh{
from{
background: red;
}
to{
background: yellow;
}
}
</style>
<body style="">
<img src="1122.jpg" width="50px" height="50px" style="display:block;border-radius:50%;margin:0px auto;border:0px solid red;padding:3px;box-shadow: 2px 2px 5px gray;" alt="">
<div id="div1"></div>
</body>
</html>