js+css实现涂鸦手绘鱼儿鱼缸内游动颜值投票排行代码

代码语言:html

所属分类:其他

代码描述:js+css实现涂鸦手绘鱼儿鱼缸内游动颜值投票排行代码,可手绘鱼儿,可点赞好评或差评。

代码标签: js css 涂鸦 手绘 鱼儿 鱼缸 游动 颜值 投票 排行 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!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;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to bottom, #1e3c72, #2a5298);
            user-select: none;
        }

        /* 鱼缸区域 */
        #tank {
            position: relative;
            width: 100vw;
            height: 100vh;
            z-index: 1;
            overflow: hidden;
        }

        /* 气泡背景 */
        .bubble {
            position: absolute;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            bottom: -50px;
            animation: rise 15s infinite ease-in;
            z-index: 0;
            pointer-events: none;
        }

        @keyframes rise {
            0% { bottom: -50px; transform: translateX(0); }
            50% { transform: translateX(30px); }
            100% { bottom: 110%; transform: translateX(-30px); }
        }

        /* 左侧画板 */
        #drawing-panel {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 300px;
            background: rgba(255, 255, 255, 0.95);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 12px;
            border: 1px solid rgba(255,255,255,0.5);
        }

        #drawing-panel h3 { margin: 0; color: #333; font-size: 18px; t.........完整代码请登录后点击上方下载按钮下载查看

网友评论0