-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathcss.html
More file actions
53 lines (49 loc) · 1.41 KB
/
Copy pathcss.html
File metadata and controls
53 lines (49 loc) · 1.41 KB
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>
<head>
<meta charset="utf-8" />
<title>css3实现字体颜色轮换</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
.but{
border: 2px solid #f35626;
padding: 1.5rem;
color: #f35626;
-webkit-animation: hue 60s infinite linear;
background-color: transparent;
-webkit-appearance:none;
border-radius: 10px;
}
@-webkit-keyframes hue {
from {
-webkit-filter: hue-rotate(0deg);
}
to {
-webkit-filter: hue-rotate(-360deg);
}
}
.title{
color: #f35626;
/*font-size: 6rem;*/
background-image:-webkit-linear-gradient(92deg,#f35626,#feab3a);
-webkit-animation: hue 60s infinite linear;
-webkit-text-fill-color: transparent;
-webkit-background-clip:text;
}
</style>
</head>
<body>
<h3 class="title">animate css</h3>
<button type="button" class="but">animate</button>
<script type="text/javascript">
/**
* ---------------------
作者:well2049
来源:CSDN
原文:https://blog.csdn.net/well2049/article/details/79635030
版权声明:本文为博主原创文章,转载请附上博文链接!
*/
/
</script>
</body>
</html>