文字聚光灯特效edit icon

Fork(复制)
下载
嵌入
设置
BUG反馈
index.html
现在支持上传本地图片了!
            
            <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body{
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #070707;
    }
    h1{
        position: relative;
        color: #6b6868;
        font-size: 120px;  
    }
    h1::after{
        content: '江枫爱开发';
        top: 0;
        left: 0;
        position: absolute;
        color: transparent;
        background-image: linear-gradient(to left,rgb(0, 174, 255),rgb(0, 255, 85),rgb(212, 0, 255),rgb(0, 204, 255),rgb(238, 255, 0));
        background-clip: text;
        -webkit-background-clip: text;
        clip-path: circle(80px at 0% 50%);
        animation: move 3s linear alternate infinite;
    }
    @keyframes move{
        0%{
            clip-path: circle(80px at 0% 50%);
        }
        100%{
            clip-path: circle(80px at 100% 50%);
        }
    }
</style>
<body>
   <h1>江枫爱开发</h1>
</body>
</html>

        
预览
控制台