未命名 sLPd3Iedit icon

创建者:
用户ohNCSKWm
Fork(复制)
下载
嵌入
BUG反馈
index.html
global.css
main.js
App.vue
package.json
index.html
            
            <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>文字高光效果</title>
<style>
.highlight-text {
font-weight: bold;
background: #fff linear-gradient(-135deg, transparent 25%, transparent 40%, rgba(3,194,205,0.3) 40%, rgba(3,194,205,0.3) 60%, transparent 60%, transparent);
background-size: 60px 60px;
background-repeat: no-repeat;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: highlight-animation 3s linear infinite;
}
@keyframes highlight-animation {
0% { background-position: -100% 0; }
100% { background-position: 130% 0; }
}
</style>
</head>
<body>
<b class="highlight-text">自定义文字颜色及高光颜色</b>
</body>
</html>
        
编辑器加载中
预览
控制台