醉美水芙蓉 发表于 6 天前

水中倒影

<style>
        @import 'https://638183.freep.cn/638183/web/css/tz01.css';
        #pa { --offsetX: 0px; --bg: tan url('https://bbs.cnzv.cc/up/upload/pic/12/20251004-0fa01f707e698814490b88b633eed9ae.jpg') no-repeat center/cover; --ma-size: 16vw; }
        #progress { position: absolute; width: 100%; height: 100%; }
        #ma { display: grid; place-items: center; bottom: 30px; animation: unset; cursor: unset; }
        #player { position: absolute; width: 62%; height: 62%; border-radius: 50%; cursor: pointer; animation: rotate 8s linear infinite var(--state); }
        #track, #prog { cursor: pointer; fill: none; stroke: lightblue; stroke-opacity: .4; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
        #prog { stroke: royalblue; stroke-opacity: 1; }
        #btnFs { bottom: 10px; color: white; border-color: currentColor !important; }
        .vid { transform: rotate(180deg); }
</style>

<div id="pa">
        <audio id="aud" src="https://music.163.com/song/media/outer/url?id=1386669794" autoplay loop></audio>
        <video class="vid pd-vid" src="https://img.tukuppt.com/video_show/2418175/00/02/22/5b52e01dad564.mp4" autoplay loop muted></video>
        <div id="ma">
                <svg id="progress" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
                        <g>
                                <title>调节进度</title>
                                <path id="track" d="M390 200A180 180 0 0 0 295 364.54A180 180 0 0 0 105 364.54A180 180 0 0 0 10 200A180 180 0 0 0 105 35.46A180 180 0 0 0 295 35.46A180 180 0 0 0 390 200" />
                                <path id="prog" d="M390 200A180 180 0 0 0 295 364.54A180 180 0 0 0 105 364.54A180 180 0 0 0 10 200A180 180 0 0 0 105 35.46A180 180 0 0 0 295 35.46A180 180 0 0 0 390 200" />
                        </g>
                </svg>
                <img id="player" src="https://638183.freep.cn/638183/small/2025/ff2.webp" alt="" />
        </div>
</div>

<script type="module">
        import { FS } from 'https://638183.freep.cn/638183/web/js/pathprog.js';
        FS(pa, player);
</script>

klxf 发表于 6 天前

漂亮!谢谢精彩分享,祝醉美管理员双节快乐

醉美水芙蓉 发表于 6 天前

klxf 发表于 2025-10-4 17:39
漂亮!谢谢精彩分享,祝醉美管理员双节快乐

谢谢友友光临!

hewanyinliao 发表于 5 天前

支持博主,分享超级出色

yly 发表于 5 天前

支持博主,分享超级棒

kejixingjiao 发表于 4 天前

感谢分享,充满人生哲理
页: [1]
查看完整版本: 水中倒影