-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (137 loc) · 2.95 KB
/
index.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<title>前端小动画</title>
</head>
<body>
<div class="wrap no-select">
<div class="main">
<span>Animation</span>
</div>
</div>
<div class="main2 no-select">
<div class="flex" style="padding-bottom: 15px;">
<a href="./gsap/text-fall.html" class="button3"><span class="relative">文字下落</span></a>
<a href="demo2.html" class="button"><span>简单交互</span></a>
<a href="./clock/demo.html" class="button">小时钟</a>
<a href="./svg/demo.html" class="button">图标动画</a>
</div>
<div class="flex">
<a href="demo4-heart.html" class="button2">心跳</a>
<a href="./circle/demo5.html" class="button2">旋转加载</a>
<a href="./gsap/smoke1.html" class="button2">烟雾光圈</a>
<a href="./gsap/smoke2.html" class="button2">烟雾字幕</a>
</div>
</div>
</body>
<style>
.flex {
display: flex;
}
.relative {
position: relative;
}
body {
width: 100vw;
height: 100vh;
margin: 0;
background-color: #f1f5f9;
}
.no-select {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Standard syntax */
}
.wrap {
background:black;
}
.main {
background: linear-gradient(
-45deg,
#ee7752,
#e73c7e,
#23a6d5,
#23d5ab
);
color: transparent;
background-clip: text;
-webkit-background-clip: text;
background-size: 400% 400%;
animation: gradient 2.5s ease infinite alternate;
font-size: 70px;
font-weight: 600;
/* margin-top: 50px; */
width: 100%;
height: 110px;
display: flex;
justify-content: center;
align-items: center;
}
@keyframes gradient {
from {
background-position: 0% 50%;
}
to {
background-position: 100% 50%;
}
}
.main2 {
margin-top: 15px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-width: 380px;
}
.button {
padding: 5px;
margin-left: 5px;
margin-right: 5px;
font-size: 20px;
text-decoration: none;
background: rgb(253 230 138);
border-radius: 8px;
color: rgb(146 64 14);
transition: background-color 0.5s ease;
display: flex;
align-items: center;
justify-content: center;
}
/* .button span {
display: inline-block;
} */
.button:hover {
background: rgb(245 158 11);
}
.button2 {
padding: 5px;
margin-left: 5px;
margin-right: 5px;
font-size: 20px;
text-decoration: none;
background: rgb(24 24 27);
border-radius: 8px;
color: rgb(244 244 245);
transition: background-color 0.5s ease;
}
.button2:hover {
background: rgb(113 113 122);
}
.button3 {
padding: 5px;
margin-left: 5px;
margin-right: 5px;
font-size: 20px;
text-decoration: none;
background: rgb(204 251 241);
border-radius: 8px;
color: rgb(19 78 74);
transition: background-color 0.5s ease;
}
.button3:hover {
background: rgb(45 212 191);
}
</style>
</html>