本帖最后由 马黑黑 于 2025-8-25 17:59 编辑
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa { --offsetX: 81px; --bg: url('https://638183.freep.cn/638183/t24/w5/cyber.webp') no-repeat center/cover; --ma-size: 20%; }
#ma { left: 30px; bottom: 30px; }
#lz { position: absolute; width: 12vw; height: 12vw; top: 0; }
#btnFs { right: 20px; bottom: 20px; color: yellow; border-color: currentColor!important; }
.cc { animation: opacity 0.5s var(--delay) infinite alternate var(--state); }
@keyframes opacity { to { opacity: 0; } }
</style>
<div id="pa">
<audio id="audio" src="https://music.163.com/song/media/outer/url?id=4441146" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/15653652/00/29/96/5fa09f4e88257.mp4" autoplay loop muted></video>
<div id="ma" class="brightness"><svg id="msvg" width="100%" height="100%" viewbox="-200 -200 400 400"></svg></div>
<svg id="lz" width="150" height="150" viewbox="-200 -200 400 400"></svg>
</div>
<script type="module">
import { FS } from 'https://638183.freep.cn/638183/web/js/fullscreen.js';
import Dr from 'https://638183.freep.cn/638183/web/mod/svgdr.js';
var dr = Dr.dr(msvg);
var tt = 6, d = 'M-20 0,0 -70,20 0,20 -190,0 -100,-20 -190 Z';
Array.from({length: tt}).forEach((_,k) => {
dr.path(d, 'olive', 'orange', 2).transform(`rotate(${360/tt*k})`);
});
dr = Dr.dr(lz);
Array.from({length: 50}).forEach((_,k) => {
var R = Math.random() * 200 - 10;
var cx = R * Math.cos(Math.PI / 180 * 360 / 50 * k),
cy = R * Math.sin(Math.PI / 180 * 360 / 50 * k),
r = Math.round(Math.random() * 4) + 4;
dr.circle(cx,cy,r,'#fff').set('class','cc').style(`--delay: ${Math.random()}s`);
});
FS(pa, ma);
</script>
|