情人节文案edit icon

创建者:
用户8lweRUv5
Fork(复制)
下载
嵌入
BUG反馈
index.html
style.css
index.js
index.html
            
            <!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>情人节快乐</title>
    <style>
        body {
            margin: 0;
            overflow: hidden;
            background: #000; /* 黑色背景 */
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            font-family: 'Arial', sans-serif;
        }
        .container {
            text-align: center;
            color: #fff;
            z-index: 1;
        }
        h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            color: #ff69b4; /* 粉色文字 */
        }
        p {
            font-size: 2rem;
            color: #fff;
        }
        .firework {
            position: absolute;
            width: 10px;
            height: 10px;
            background: #ff69b4;
            border-radius: 50%;
            animation: explode 1.5s ease-out infinite;
        }
        @keyframes explode {
            0% {
                transform: scale(1);
                opacity: 1;
            }
            100% {
                transform: scale(10);
                opacity: 0;
            }
        }
        .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/stardust.png');
            animation: twinkle 2s infinite;
        }
        @keyframes twinkle {
            0%, 100% {
                opacity: 0.8;
            }
            50% {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
    <div class="stars"></div>
    <div class="container">
        <h1>祝陈明情人节快乐!</h1>
        <p>愿你的每一天都如星空般璀璨 ❤️</p>
    </div>
    <div class="firework" style="top: 20%; left: 30%;"></div>
    <div class="firework" style="top: 40%; left: 70%;"></div>
    <div class="firework" style="top: 60%; left: 50%;"></div>
    <div class="firework" style="top: 80%; left: 20%;"></div>
</body>
</html>
        
编辑器加载中
预览
控制台