非常炫的文字效果
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>非常炫的文字效果</title>
<style>
.colorful a {
color: #E16132;
margin-right: 5px;
text-decoration: none;
padding: 3px 0;
}
@supports (-webkit-transform: scale(0)) {
.colorful {
/*-webkit-mask-image: linear-gradient(to right, red, orange, yellow, green, cyan, blue, purple);*/
background-image: linear-gradient(to right, red, orange, yellow, green, yellow, orange, red, orange, yellow, green, yellow, orange, red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-background-size: 200% 100%;
animation: bgp 5s infinite linear;
}
}
@-webkit-keyframes bgp {
0% { background-position: 0 0;}
100% { background-position: -100% 0;}
}
</style>
</head>
<body>
<p class="colorful ovh">
<a href="https://blog.csdn.net/xutongbao" class="btn" target="_blank">徐同保</a>
<a href="#" class="btn" target="_blank">京东自营</a>
<a href="#" class="btn" target="_blank">当当自营</a>
<a href="#" class="btn" target="_blank">亚马逊</a>
<a href="#" class="btn" target="_blank">异步社区</a>
</p>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
</body>
</html>
备注:欢迎加入web前端求职招聘qq群:668352707
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步