|
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa {
--offsetX: 81px;
--bg: #fff url('https://638183.freep.cn/638183/t24/w5/hxxu.webp') no-repeat center/cover;
--per: 15px;
--ma-size: 15%;
mask: conic-gradient(red 0 25%, rgba(0,0,0,.95) 0) center / var(--per) var(--per);
-webkit-mask: conic-gradient(red 0 25%, rgba(0,0,0,.95) 0) center / var(--per) var(--per);
}
#ma {
background: orange radial-gradient(circle, darkred 70%, transparent 75%, transparent) 0 0 / 4% 4%;
left: 5%;
mask: url('https://638183.freep.cn/638183/small/fi1.webp') no-repeat center/cover;
-webkit-mask: url('https://638183.freep.cn/638183/small/fi1.webp') no-repeat center/cover;
}
#btnFs { left: 20px; bottom: 20px; color: #eee; }
</style>
<div id="pa">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1478143442" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/2414777/00/02/12/5b514d29ccc07.mp4" autoplay loop muted></video>
<video class="qk-vid" src="https://bpic.588ku.com/video_listen/588ku_video/23/08/29/17/19/35/video64edb827bb149.mp4" autoplay loop muted></video>
<div id="ma" class="grayscale"></div>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/js/fullscreen.js';
FS(pa, ma);
var per = 15, step = 0.01, raf;
aud.onplaying = aud.onpaused = () => aud.paused ? cancelAnimationFrame(raf) : animate();
aud.onseek = () => cancelAnimationFrame(raf);
animate();
function animate() {
if (document.visibilityState === 'hidden') return;
cancelAnimationFrame(raf);
per -= step;
if (per> 15 || per < 1.5) step = -step;
pa.style.setProperty('--per', `${per}px`);
if (!aud.paused) raf = requestAnimationFrame(animate);
}
</script>
|