|
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa { --offsetX: 81px; --bg: #ccc url('https://638183.freep.cn/638183/t24/w6/hvjx.webp') no-repeat center/cover; }
#progress { position: absolute; width: 12vw; height: 12vw; bottom: 30px; transition: .4s; }
#prog, #track { fill: none; stroke: url(#grd); stroke-width: 16; stroke-opacity: .7; stroke-linecap: round; stroke-linejoin: round; transition: .15s; cursor: pointer; }
#prog { stroke: rgb(255,255,255); }
#g1 { transform-box: fill-box; transform-origin: center; cursor: pointer; fill: url(#grd); animation: rotate 8s linear infinite var(--state); }
#btnFs { right: 20px; top: 20px; color: cyan; border-color: currentColor!important; }
</style>
<div id="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=25896403" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/2418175/00/02/22/5b52de8ec8111.mp4" autoplay loop muted></video>
<svg id="progress" class="hue-rotate" xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 400 400">
<defs>
<radialGradient id="grd" cx="0.5" cy="0.5" r="0.5" fx="0.25" fy="0.75">
<stop offset="0%" stop-color="transparent"></stop>
<stop offset="70%" stop-color="red"></stop>
<stop offset="100" stop-color="lightgreen"></stop>
</radialGradient>
</defs>
<g id="g1" class="brightness"><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.path('M0 0 C200 -200,-200 -200,0 0Z').addTo('g1').rotates(5);
dr.path('M-180 0 A180 180 0 1 0 180 0').id('track').addTo('g2');
dr.path('M-180 0 A180 180 0 1 0 180 0').id('prog').addTo('g2');
FS(pa, g1);
</script>
|