下雪(xiaxue)
2024年06月05日 10:36
预览特效特效代码(JS)var THREE = THR...
.text {
position: relative;
display: inline-block;
color: transparent;
background: linear-gradient(150deg,
#08dfb4,
#e6d205 20%,
#2cc4e0 40%,
#8b2ce0 60%,
#ff6384 80%,
#08dfb4);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400% 100%;
animation: flowCss 12s infinite linear;
}
@keyframes flowCss {
0% {
background-position: 0 0;
}
100% {
background-position: -400% 0;
}
}
.text:hover {
animation: flowCss 5s infinite linear;
}
<style>
.text {
position: relative;
display: inline-block;
color: transparent;
background: linear-gradient(150deg,
#08dfb4,
#e6d205 20%,
#2cc4e0 40%,
#8b2ce0 60%,
#ff6384 80%,
#08dfb4);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 400% 100%;
animation: flowCss 12s infinite linear;
}
@keyframes flowCss {
0% {
background-position: 0 0;
}
100% {
background-position: -400% 0;
}
}
.text:hover {
animation: flowCss 5s infinite linear;
}
</style>
<h2 class="text">Web因你而不同,让我们为你的Web锦上添花!</h2>
代码较短,暂时不提供