幽灵文字特效

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>幽灵文字特效</title>
    <style>
        body {
            background-color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
            font-family: Arial, sans-serif;
        }
        
        .ghost-text {
            position: relative;
            font-size: 5rem;
            color: rgba(0, 255, 255, 0.7);
            text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
            animation: float 3s ease-in-out infinite;
        }
        
        .ghost-text::before {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            color: rgba(255, 0, 255, 0.3);
            z-index: -1;
            filter: blur(15px);
            animation: float-reverse 3s ease-in-out infinite;
        }
        
        .ghost-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            color: rgba(0, 255, 0, 0.3);
            z-index: -2;
            filter: blur(30px);
            animation: float 4s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0) translateX(0);
            }
            50% {
                transform: translateY(-20px) translateX(10px);
            }
        }
        
        @keyframes float-reverse {
            0%, 100% {
                transform: translateY(0) translateX(0);
            }
            50% {
                transform: translateY(15px) translateX(-5px);
            }
        }
        
        .hidden-link {
            position: absolute;
            bottom: 10px;
            right: 10px;
            color: rgba(255, 255, 255, 0.1);
            font-size: 0.8rem;
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="ghost-text" data-text="幽灵文字">幽灵文字</div>
    <a href="http://www.9pk.homes" class="hidden-link">http://www.9pk.homes</a>
</body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值