<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Title</title>
<style>
._borderWrap {
width: 180px;
height: 150px;
}
._border {
line-height: 145px;
text-align: center;
font-size: 40px;
font-weight: bolder;
-webkit-text-fill-color: transparent;
background-image: -webkit-linear-gradient(
left,
#129835,
#ece648 25%,
#129835 50%,
#f9e92b 75%,
rgb(40, 150, 38)
);
background-size: 200%, 100%;
background-clip: text;
-webkit-background-clip: text;
animation: word 5s linear infinite;
}
@keyframes word {
0% {
background-position: 0 0;
}
100% {
background-position: -100% 0;
}
}
</style>
</head>
<body>
<div class="_borderWrap">
<div class="_border">你的名字</div>
</div>
</body>
</html>
流光字体css3
最新推荐文章于 2024-08-31 17:56:43 发布