分享一个仿bilibili充电效果代码-宇凌云界
分享一个仿bilibili充电效果代码
此内容为免费阅读,请登录后查看
大米0
免费阅读
🎀 🌸

分享一个仿bilibili充电效果代码

分享一个仿bilibili充电效果代码

效果图

20250619225515580-1000019864

HTML代码

<div id="con">
        <div id="TA-con">
            <div id="text-con">
                <div id="linght"></div>
                <div id="TA">为TA充电</div>
            </div>
        </div>
        <div id="tube-con">
            <svg viewBox="0 0 1028 385" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M1 77H234.226L307.006 24H790" stroke="#e5e9ef" stroke-width="20" />
                <path d="M0 140H233.035L329.72 71H1028" stroke="#e5e9ef" stroke-width="20" />
                <path d="M1 255H234.226L307.006 307H790" stroke="#e5e9ef" stroke-width="20" />
                <path d="M0 305H233.035L329.72 375H1028" stroke="#e5e9ef" stroke-width="20" />
                <rect y="186" width="236" height="24" fill="#e5e9ef" />
                <ellipse cx="790" cy="25.5" rx="25" ry="25.5" fill="#e5e9ef" />
                <circle r="14" transform="matrix(1 0 0 -1 790 25)" fill="white" />
                <ellipse cx="790" cy="307.5" rx="25" ry="25.5" fill="#e5e9ef" />
                <circle r="14" transform="matrix(1 0 0 -1 790 308)" fill="white" />
            </svg>
            <div id="mask">
                <svg viewBox="0 0 1028 385" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M1 77H234.226L307.006 24H790" stroke="#f25d8e" stroke-width="20" />
                    <path d="M0 140H233.035L329.72 71H1028" stroke="#f25d8e" stroke-width="20" />
                    <path d="M1 255H234.226L307.006 307H790" stroke="#f25d8e" stroke-width="20" />
                    <path d="M0 305H233.035L329.72 375H1028" stroke="#f25d8e" stroke-width="20" />
                    <rect y="186" width="236" height="24" fill="#f25d8e" />
                    <ellipse cx="790" cy="25.5" rx="25" ry="25.5" fill="#f25d8e" />
                    <circle r="14" transform="matrix(1 0 0 -1 790 25)" fill="white" />
                    <ellipse cx="790" cy="307.5" rx="25" ry="25.5" fill="#f25d8e" />
                    <circle r="14" transform="matrix(1 0 0 -1 790 308)" fill="white" />
                </svg>
            </div>
            <div id="orange-mask">
                <svg viewBox="0 0 1028 385" fill="none" xmlns="http://www.w3.org/2000/svg">
                    <path d="M1 77H234.226L307.006 24H790" stroke="#ffd52b" stroke-width="20" />
                    <path d="M0 140H233.035L329.72 71H1028" stroke="#ffd52b" stroke-width="20" />
                    <path d="M1 255H234.226L307.006 307H790" stroke="#ffd52b" stroke-width="20" />
                    <path d="M0 305H233.035L329.72 375H1028" stroke="#ffd52b" stroke-width="20" />
                    <rect y="186" width="236" height="24" fill="#ffd52b" />
                    <ellipse cx="790" cy="25.5" rx="25" ry="25.5" fill="#ffd52b" />
                    <circle r="14" transform="matrix(1 0 0 -1 790 25)" fill="white" />
                    <ellipse cx="790" cy="307.5" rx="25" ry="25.5" fill="#ffd52b" />
                    <circle r="14" transform="matrix(1 0 0 -1 790 308)" fill="white" />
                </svg>
            </div>
            <p id="people">共 <b>0</b> 人</p>
        </div>
    </div>

CSS代码

Giraffe美化插件
Giraffe美化插件
Giraffe美化插件

温馨提示: 本文最后更新于2025-07-17 01:29:26
© 版权声明
THE END
喜欢就支持一下吧
点赞10赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容