-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_transform.html
More file actions
47 lines (47 loc) · 1.16 KB
/
Copy pathtest_transform.html
File metadata and controls
47 lines (47 loc) · 1.16 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
<!DOCTYPE html>
<html lang="kr">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
margin: 20px;
}
.container{
width: 100px;
height: 50px;
background-color: green;
border: 1px solid black;
color: white;
/* transform: translate(20px,100px);
transform: scale(1);
transform-origin: left top;
transform: skew(-20deg); */
animation-name: ani;
animation-duration: 3s;
animation-iteration-count: 1;
animation-direction: alternate;
animation-delay: 1s;
}
.container:hover{
animation-play-state: paused;
}
@keyframes ani{
0%{
left: 0; top: 0;
}
/* 50%{
top: 0; right: 0;
transform: translatex(100px);
} */
100%{
right: 0; top: 0;
transform: translatex(-100px);
}
}
</style>
</head>
<body>
<div class="container">html요소이동</div>
</body>
</html>