-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path5.html
55 lines (43 loc) · 1.08 KB
/
5.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>5</title>
<style>
/* #div1{
transform:translate(200px,200px);
transform:rotate(45deg);
transform:scale(2,3);
transform:skew(20deg,33deg);
}
*/
#div2{
width:400px;
height:400px;
background:green;
transition:width 1s;
}
#div2:hover{
width:500px;
}
#div1{
width:300px;
height:300px;
background: red;
position:absolute;
animation:myfirst 5s;
}
@keyframes myfirst{
0% {background:red; left:0px; top:0px;}
25% {background:yellow; left:200px; top:0px;}
50% {background:blue; left:200px; top:200px;}
75% {background:green; left:0px; top:200px;}
100% {background:red; left:0px; top:0px;}
}
</style>
</head>
<body>
<div id="div1">div1</div>
<div id="div2">div2</div>
</body>
</html>