代码

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
{% raw %}
<style>
#test-site-title {
padding-top: 3px;
background-image: linear-gradient(
to left,
orangered,
orange,
gold,
lightgreen,
cyan,
dodgerblue,
mediumpurple,
hotpink,
orangered
);
background-size: 110vw;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-animation: rainbowan 60s linear infinite;
animation: rainbowan 60s linear infinite;
}
@-webkit-keyframes rainbowan {
to {
background-position: -2000vw;
}
}
@keyframes rainbowan {
to {
background-position: -2000vw;
}
}
</style>
<span id="test-site-title">Ln's Blog</span>
{% endraw %}

效果

Ln's Blog