-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathanimation_with_transform.html
53 lines (52 loc) · 1.14 KB
/
animation_with_transform.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link href="style.css" rel="stylesheet" />
<style>
body {
height: 1000vh;
margin: 20px;
}
div {
display: flex;
justify-content: center;
align-items: center;
padding-top: 200px;
}
@keyframes tblr {
0% {
transform: rotateY(0);
}
25% {
transform: scale(2);
}
50% {
border-radius: 50%;
transform: rotateY(180deg) translateY(100px);
border-color: skyblue;
}
75% {
transform: scale(3);
}
100% {
transform: rotateY(0);
}
}
img {
width: 150px;
height: 150px;
border: 10px solid tomato;
animation: tblr 5s 1s ease-in infinite;
}
</style>
</head>
<body>
<div>
<img src="./haneul.jpeg" alt="not showed!" />
</div>
</body>
</html>