手指打手势动画特效

<!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;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: #f5f5f5;
            font-family: Arial, sans-serif;
        }

        .hand {
            position: relative;
            width: 200px;
            height: 300px;
        }

        /* 手掌 */
        .palm {
            position: absolute;
            width: 160px;
            height: 180px;
            background: #ffdbac;
            border-radius: 80px 80px 60px 60px;
            bottom: 0;
            left: 20px;
            box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
        }

        /* 手指基础样式 */
        .finger {
            position: absolute;
            background: #ffdbac;
            border-radius: 20px;
            box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
            transform-origin: bottom center;
        }

        /* 大拇指 */
        .thumb {
            width: 50px;
            height: 60px;
            bottom: 60px;
            left: 0;
            border-radius: 20px 0 20px 20px;
            animation: thumb-move 3s infinite alternate;
        }

        /* 食指 */
        .index {
            width: 40px;
            height: 100px;
            bottom: 120px;
            right: 120px;
            animation: index-move 3s infinite alternate;
        }

        /* 中指 */
        .middle {
            width: 40px;
            height: 120px;
            bottom: 120px;
            right: 80px;
            animation: middle-move 3s infinite alternate;
        }

        /* 无名指 */
        .ring {
            width: 40px;
            height: 110px;
            bottom: 120px;
            right: 40px;
            animation: ring-move 3s infinite alternate;
        }

        /* 小指 */
        .pinky {
            width: 30px;
            height: 90px;
            bottom: 120px;
            right: 10px;
            animation: pinky-move 3s infinite alternate;
        }

        /* 手指关节 */
        .finger-joint {
            position: absolute;
            width: 100%;
            height: 20px;
            background: rgba(0,0,0,0.1);
            border-radius: 10px;
        }

        /* 大拇指动画 */
        @keyframes thumb-move {
            0%, 40% {
                transform: rotate(-20deg);
                height: 60px;
            }
            60%, 100% {
                transform: rotate(30deg);
                height: 50px;
            }
        }

        /* 食指动画 */
        @keyframes index-move {
            0%, 40% {
                transform: rotate(0deg);
                height: 100px;
            }
            60%, 100% {
                transform: rotate(-30deg);
                height: 80px;
            }
        }

        /* 中指动画 */
        @keyframes middle-move {
            0%, 40% {
                transform: rotate(0deg);
                height: 120px;
            }
            60%, 100% {
                transform: rotate(-20deg);
                height: 100px;
            }
        }

        /* 无名指动画 */
        @keyframes ring-move {
            0%, 40% {
                transform: rotate(0deg);
                height: 110px;
            }
            60%, 100% {
                transform: rotate(-10deg);
                height: 90px;
            }
        }

        /* 小指动画 */
        @keyframes pinky-move {
            0%, 40% {
                transform: rotate(0deg);
                height: 90px;
            }
            60%, 100% {
                transform: rotate(10deg);
                height: 70px;
            }
        }

        /* 手势说明 */
        .gesture-info {
            position: absolute;
            bottom: -60px;
            left: 0;
            width: 100%;
            text-align: center;
            font-size: 18px;
            color: #666;
            animation: text-pulse 3s infinite;
        }

        @keyframes text-pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        /* 插入的链接样式 */
        .custom-link {
            position: fixed;
            bottom: 20px;
            right: 20px;
            color: rgba(0,0,0,0.7);
            text-decoration: none;
            font-size: 14px;
            background: rgba(255,255,255,0.3);
            padding: 8px 15px;
            border-radius: 20px;
            z-index: 10;
            transition: all 0.3s ease;
        }

        .custom-link:hover {
            color: black;
            background: rgba(255,255,255,0.5);
        }
    </style>
</head>
<body>
    <div class="hand">
        <div class="palm"></div>
        <div class="finger thumb">
            <div class="finger-joint" style="top: 30px;"></div>
        </div>
        <div class="finger index">
            <div class="finger-joint" style="top: 40px;"></div>
            <div class="finger-joint" style="top: 70px;"></div>
        </div>
        <div class="finger middle">
            <div class="finger-joint" style="top: 50px;"></div>
            <div class="finger-joint" style="top: 90px;"></div>
        </div>
        <div class="finger ring">
            <div class="finger-joint" style="top: 45px;"></div>
            <div class="finger-joint" style="top: 80px;"></div>
        </div>
        <div class="finger pinky">
            <div class="finger-joint" style="top: 35px;"></div>
            <div class="finger-joint" style="top: 60px;"></div>
        </div>
        <div class="gesture-info">OK手势动画</div>
    </div>
    

</body>
</html>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值