- UID
- 616
- 主题
- 330
- 回帖
- 23438
- 精华
- 204
- 积分
- 31314
- 金币
- 202184 枚
- 草籽
- 525 颗
- 鲜花
- 5584 朵
- 注册时间
- 2023-11-16
- 最后登录
- 2026-1-28
|
楼主 |
发表于 2025-10-23 19:07
|
显示全部楼层
本帖最后由 花简静 于 2025-10-25 10:14 编辑
- <style>
- @import 'https://638183.freep.cn/638183/web/css/tz02.css';
- #pa { --offsetX: 0px; margin: 150px 0; left: calc(50% - 101px);width: clamp(600px, 90vw, 1700px); height: auto; aspect-ratio: 17/12;--bg: tan url('https://642303.freep.cn/642303/tu/20251023woyy.webp') no-repeat center/cover; }
- #progress { position: absolute; width: 5vw; height: 5vw;right:6%;top:75%; transition: .4s; }
- #g1 { cursor: pointer; fill: transparent; stroke: url('#grd'); stroke-width: 6; transform-box: fill-box; transform-origin: center; animation: rotate 8s linear infinite var(--state); }
- #g2 { cursor: pointer; fill: none; stroke: url(#grd); stroke-opacity: .8; stroke-width: 8; stroke-linecap: round; }
- #prog { stroke: orange; stroke-opacity: 1; }
- #btnFs { bottom: 20px; color: white; border-color: currentColor !important; }
- @keyframes rot { to { transform: rotate(-360deg); } }
- .pd-vid {mix-blend-mode:overlay;width:100%; -webkit-mask: linear-gradient(to bottom,transparent,transparent,red);opacity: .90;}
- </style>
- <div id="pa">
- <audio id="aud" src="https://music.163.com/song/media/outer/url?id=27258678" autoplay loop></audio>
- <video class="pd-vid" src="https://img.tukuppt.com/video_show/2418175/00/02/20/5b51fecde9934.mp4" autoplay loop muted></video>
- <svg id="progress" class="brightness" xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 400 400">
- <g id="g1"><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.1';
- var dr = Dr.dr(progress);
- dr.gradient('linearGradient', {id: 'grd',x1: 0, x2:0, y1: 0, y2: 0.75}, [['yellow',0],['orange',0.5],['yellow',1]]);
- dr.path('M-150 0 A150 150 0 0 0 150 0').id('track').addTo(g2); //M-160 50 Q0 240,160 50
- dr.path('M-150 0 A150 150 0 0 0 150 0').id('prog').addTo(g2);
- dr.polygon('0 0,-25 -120,0 -90,25 -120,0 0').addTo(g1).rotates(10);
- dr.circle(0, 0, 120).addTo('g1');
- dr.text('~r~n~', 0, -140, 'url(#grd)').style('stroke: gray; stroke-width: 2; font: bold 50px sans-serif; letter-spacing: 4px; text-anchor: middle;');
- FS(pa, g1);
- </script>
复制代码 |
|