-
Notifications
You must be signed in to change notification settings - Fork 2
/
indexRotate.html
96 lines (89 loc) · 1.97 KB
/
indexRotate.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
92
93
94
95
96
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>旋转文字</title>
<style>
body {
margin: 0px;
overflow: hidden;
}
.render-box{
position: absolute;
box-sizing: border-box;
background-color: #000000;
/* background-image: linear-gradient(360deg, #828282a6 50%, #0f0 50%); */
}
.render-box *{
box-sizing: border-box;
}
.app-render{
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
}
/* 动画代码 */
@keyframes example1 {
0% {transform: rotate(10deg);}
25% {transform: rotate(-13deg);}
50% {transform: rotate(5deg);}
75% {transform: rotate(-3deg);}
100% {transform: rotate(0deg);}
}
/* 动画代码 */
@keyframes example2 {
from {transform: rotate(180deg);}
to {transform: rotate(0deg);}
}
/* 动画代码 */
@keyframes example3 {
0% {transform: translateX(2%);}
25% {transform: translateX(-3%);}
50% {transform: translateX(1%);}
75% {transform: translateX(-0.5%);}
100% {transform: translateX(0%);}
}
/* 动画代码 */
@keyframes example4 {
from {transform: scale(0.1);}
to {transform: scale(1);}
}
/* 动画代码 */
@keyframes example5 {
0% {transform: scale(0.8);}
25% {transform: scale(1.3);}
50% {transform: scale(0.9);}
75% {transform: scale(1.1);}
100% {transform: scale(1);}
}
.wordMove1{
animation-name: example1;
animation-duration: 0.25s;
}
.wordMove2{
animation-name: example2;
animation-duration: 0.25s;
}
.wordMove3{
animation-name: example3;
animation-duration: 0.25s;
}
.wordMove4{
animation-name: example4;
animation-duration: 0.25s;
}
.wordMove5{
animation-name: example5;
animation-duration: 0.25s;
}
</style>
</head>
<body>
<div class="render-box">
<div class="app-render"></div>
</div>
<script src="./index.js"></script>
</body>
</html>