forked from easysIT/doit_HTML-CSS-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransform.html
More file actions
31 lines (28 loc) · 665 Bytes
/
transform.html
File metadata and controls
31 lines (28 loc) · 665 Bytes
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
<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>Transform</title>
<style>
.box {
width: 60px;
height: 60px;
margin: 60px;
animation: rotate 1.5s infinite, background 1.5s infinite alternate;
}
@keyframes rotate {
from { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
50% { transform: perspective(120px) rotateX(-180deg) rotateY(0deg); }
to { transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); }
}
@keyframes background {
from { background-color: red; }
50% { background-color: green }
to { background-color: blue; }
}
</style>
</head>
<body>
<div class="box"> </div>
</body>
</html>