|
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa { --offsetX: 81px; --bg: #ccc url('https://638183.freep.cn/638183/t24/w6/9f2.webp') no-repeat center/cover; }
#progress { position: absolute; width: 240px; height: 240px; right: 20px; top: 20px; }
#prog, #track { fill: none; stroke: lightgreen; stroke-width: 10; stroke-opacity: .5; stroke-linecap: round; stroke-linejoin: round; transition: .15s; cursor: pointer; }
#prog { stroke-opacity: 1; }
#player { transform-box: fill-box; transform-origin: center; cursor: pointer; fill: transparent; stroke: lightgreen; stroke-width: 8px; animation: rotate 8s linear infinite var(--state); }
#btnFs { right: 20px; bottom: 20px; color: silver; border-color: currentColor!important; }
@keyframes move { to { stroke-dashoffset: 0; } }
</style>
<div id="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1371757759" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/2430062/00/11/05/5d834fa0992c6.mp4" autoplay loop muted></video>
<svg id="progress" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<g id="player">
<title>ALT+X</title>
<path d="M390 200L334.35 334.35 L200 390 L65.65 334.35 L10 200 L65.65 65.65 L200 10 L334.35 65.65 L390 200"></path>
<path d="M350 200L306.07 306.07 L200 350 L93.93 306.07 L50 200 L93.93 93.93 L200 50 L306.07 93.93 L350 200"></path>
</g>
<circle id="track" cx="200" cy="200" r="60"><title>调节进度</title></circle>
<circle id="prog" cx="200" cy="200" r="60"><title>调节进度</title></circle>
</svg>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/js/pathprog.js';
FS(pa, player);
</script>
|