本帖最后由 马黑黑 于 2025-8-25 10:21 编辑
<style>
@import 'https://638183.freep.cn/638183/web/css/tz01.css';
#pa {
--offsetX: 81px;
--bg: url('https://638183.freep.cn/638183/t24/w5/immortal.webp') no-repeat center/100% 100%;
--ma-size: 20%;
}
#ma {
right: 30px;
top: 30px;
background: url('https://638183.freep.cn/638183/small/2025/dream.webp') no-repeat center/cover;
mix-blend-mode: screen;
}
#btnFs { bottom: 20px; color: #eee; border-color: currentColor; }
#msvg { position: absolute; width: 100%; height: 100%; z-index: -1; }
.cc {
opacity: 1;
offset-path: path('M-600 0, Q0 -180, 600 180');
offset-distance: 0%;
animation:
opacity 0.5s var(--delay) infinite alternate var(--state),
move 20s var(--delay) linear infinite var(--state);
}
@keyframes opacity { to { opacity: 0.2; } }
@keyframes move { to { offset-distance: 100%; } }
</style>
<div id="pa">
<audio id="audio" src="https://music.163.com/song/media/outer/url?id=2061739" autoplay loop></audio>
<video class="pd-vid" src="https://img.tukuppt.com/video_show/2269348/00/35/87/5fd818a819d1e.mp4" autoplay loop muted></video>
<div id="ma" class="opacity"></div>
<svg id="msvg" viewbox="-320 -180 640 360">
</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);
Array.from({length: 60}).forEach(() => {
var cx = Math.round(Math.random() * 310 * (Math.random() > 0.5 ? 1 : -1)),
cy = Math.round(Math.random() * 170 * (Math.random() > 0.5 ? 1 : -1)),
r = Math.ceil(Math.random() * 2 + 2),
color = '#' + Math.random().toString(16).substring(2, 8),
delay = (-20 * Math.random()).toFixed(2);
dr.circle(cx, cy, r, color).set('class', 'cc').style(`--delay: ${delay}s`);
});
FS(pa, ma);
</script>
|