|
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa { --offsetX: 81px; --bg: #ccc url('https://638183.freep.cn/638183/t24/w6/syntpng.webp') no-repeat center/cover; }
#progress { position: absolute; width: 260px; height: 260px; right: 30px; top: 0; }
#prog, #track { fill: none; stroke: #128CA0; stroke-opacity: .4; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; transition: .15s; cursor: pointer; }
#track { stroke-dasharray: 4 10; stroke-dashoffset: 50%; animation: move 1s linear infinite var(--state); }
#prog { stroke-opacity: 1; }
#player { transform-box: fill-box; transform-origin: center; cursor: pointer; fill: #128CA0; fill-rule: evenodd; animation: rotate 8s linear infinite var(--state); }
#btnFs { right: 20px; bottom: 20px; color: teal; border-color: currentColor!important; }
.vid { opacity: .85; transition: 1s; }
#pa:hover .vid { transform: scale(1.2); }
@keyframes move { to { stroke-dashoffset: 0; } }
</style>
<div id="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1371757762" autoplay loop></audio>
<video class="vid pd-vid" src="https://img.tukuppt.com/video_show/15653652/02/64/00/64449319e3976.mp4" autoplay loop muted></video>
<svg id="progress" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<polygon id="player" class="invert" points="91.88 252.07 274.82 106.18 173.30 316.99 173.30 83.01 274.82 293.82 91.88 147.93 320.00 200.00 91.88 252.07"><title>Alt+X</title></polygon>
<path id="track" d="M30 200 Q200 520,370 200"><title>调节进度</title></path>
<path id="prog" d="M30 200 Q200 520,370 200"><title>调节进度</title></path>
</svg>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/js/pathprog.js';
FS(pa, player);
</script>
|