-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_animation.html
More file actions
58 lines (58 loc) · 1.52 KB
/
Copy pathtest_animation.html
File metadata and controls
58 lines (58 loc) · 1.52 KB
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
58
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
margin: 20px;
}
.container{
width: 232px;
height: 217px;
background-image: url(images/programmer.png);
background-color: red;
/* border: 1px solid black; */
animation-name: ani;
animation-duration: 6s;
animation-iteration-count: 1;
animation-timing-function: linear;
position: relative;
}
@keyframes ani{
0%{
left: 0;
top: 0;
}
25%{
left: 200px;
top: 0;
/* background-color: blue; */
background-image: url(images/americano.jpg);
/* transform: translateX(100px); */
}
50%{
left: 200px;
top: 200px;
background-color: gold;
background-image: url(images/cafelatte.jpg);
}
75%{
left: 0;
top: 200px;
background-color: green;
background-image: url(images/cappuccino.jpg);
}
100%{
left: 0;
top: 0;
background-color: dodgerblue;
background-image: url(images/coffee1.gif);
}
}
</style>
</head>
<body>
<div class="container"></div>
</body>
</html>