|
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa { --offsetX: 81px; --bg: tan url('https://638183.freep.cn/638183/t24/w6/ksuj.webp') no-repeat center/cover; }
#progress { position: absolute; bottom: 20px; width: 15vw; height: 15vw; transition: .4s; }
#g1 { cursor: pointer; fill: url(#grd); fill-opacity: .8; animation: rotate 8s linear infinite var(--state); }
#g2 { cursor: pointer; fill: none; stroke: url(#grd); stroke-width: 10; stroke-linecap: round; }
#prog { stroke: rgba(0,100,0,.6); }
#btnFs { left: 20px; bottom: 20px; color: white; border-color: currentColor !important; }
</style>
<div id="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=430062600" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/15653652/01/67/72/63db237ce75cf.mp4" autoplay loop muted></video>
<svg id="progress" xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 400 400">
<g id="g1" class="sepia"><title>ALT+X</title></g>
<g id="g2"><title>调节进度</title></g>
</svg>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/js/pathprog.js';
import Dr from 'https://638183.freep.cn/638183/web/mod/svgdr.mod.js?v=1.0';
var dr = Dr.dr(progress);
dr.gradient('radialGradient', {id: 'grd'}, [['transparent',0],['green',.5],['lightgreen',1]]);
dr.path('M0 0 Q-70 100,0 140 Q70 100,0 0').addTo(g1).rotates(5);
dr.path('M180 0Q150 80,160 150 T-180 120').id('track').addTo(g2);
dr.path('M180 0Q150 80,160 150 T-180 120').id('prog').addTo(g2);
FS(pa, g1);
</script>
|