-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.html
91 lines (81 loc) · 1.52 KB
/
temp.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
text-align: center;
margin: 0;
}
.tiles {
height: 100vh;
height: calc(var(--vh, 1vh) * 100);
margin: 0 auto;
}
.tile {
float: left;
width: 50%;
height: 50%;
box-sizing: border-box;
font-size: 400px;
font-weight: bold;
overflow: hidden;
margin: 0;
padding: 0;
font-family: serif;
}
.fliph {
transform: scaleX(-1);
/* Standard */
}
.flipv {
transform: scaleY(-1);
/* Standard */
}
.flipv2 {
transform: scaleY(-1);
/* Standard */
transform: rotate(180deg);
/* IE 6/7/8 */
}
.fliphv {
transform: rotate(90deg);
}
</style>
</head>
<body>
<div class="tiles">
<div class="tile">
<div class="animation">
Nice!
</div>
</div>
<div class="tile fliph">
<div class="animation">
Nice!
</div>
</div>
<div class="tile flipv">
<div class="animation">
Nice!
</div>
</div>
<div class="tile fliph flipv2">
<div class="animation">
Nice!
</div>
</div>
</div>
<script src="https://button.zetaphor.com/static/anime.min.js"></script>
<script>
var elements = document.querySelectorAll(".animation");
anime({
targets: ".animation",
rotate: "1turn",
easing: "linear",
loop: true,
duration: 3000
});
</script>
</body>
</html>