|
|

楼主 |
发表于 2025-9-29 08:25
|
显示全部楼层
帖子代码
- <style>
- @import 'https://638183.freep.cn/638183/web/css/tz02.css';
- #pa { --offsetX: 81px; --bg: tan url('https://638183.freep.cn/638183/t24/w6/1164.webp') no-repeat center/cover; }
- #progress { position: absolute; top: 15%; width: 10vw; height: 10vw; transition: .4s; }
- #progress:hover { transform: scale(2); }
- #g1 { cursor: pointer; fill: url(#grd); stroke: url('#grd'); stroke-width: 10; transform-box: fill-box; transform-origin: center; animation: rotate 8s linear infinite var(--state); }
- #g2 { cursor: pointer; fill: none; stroke: #ea9133; stroke-width: 10; stroke-linecap: round; }
- #prog { stroke: url(#grd); }
- #btnFs { bottom: 20px; color: white; border-color: currentColor !important; }
- @keyframes rot { to { transform: rotate(-360deg); } }
- </style>
- <div id="pa">
- <audio id="aud" src="https://music.163.com/song/media/outer/url?id=494642112" autoplay loop></audio>
- <video class="pd-vid" src="https://img.tukuppt.com/video_show/15653652/01/31/38/62d771d99618d.mp4" autoplay loop muted></video>
- <svg id="progress" 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}, [['red',0],['darkred',0.5],['plum',1]]);
- dr.polygon('15 0,-50 110,50 140,15 0').addTo(g1).rotates(7);
- dr.path('M190 0 A160 140 -30 0 1 -190 0 A160 140 -30 0 1 190 0').id('track').addTo(g2);
- dr.path('M190 0 A160 140 -30 0 1 -190 0 A160 140 -30 0 1 190 0').id('prog').addTo(g2);
-
- FS(pa, g1);
- </script>
复制代码
|
评分
-
| 参与人数 1 | 威望 +50 |
金钱 +100 |
经验 +50 |
收起
理由
|
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
查看全部评分
|