<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS文字渐变动画特效</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #121212;
font-family: 'Arial', sans-serif;
overflow: hidden;
margin: 0;
}
.gradient-text {
font-size: 5rem;
font-weight: bold;
text-transform: uppercase;
background: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
background-size: 300% 300%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: gradient 4s ease infinite;
text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.website-link {
position: absolute;
bottom: 20px;
right: 20px;
color: #666;
font-size: 0.8rem;
text-decoration: none;
transition: color 0.3s;
}
.website-link:hover {
color: #fff;
}
</style>
</head>
<body>
<div class="gradient-text">动画文字效果</div>
</body>
</html>
1673

被折叠的 条评论
为什么被折叠?



