楼主: 花简静

花简静贴子代码及说明汇总(翻页有新贴)

[复制链接]
随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
ALT+X 调节进度
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
本帖最后由 花简静 于 2025-10-25 10:14 编辑
  1. <style>
  2.         @import 'https://638183.freep.cn/638183/web/css/tz02.css';
  3.         #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; }
  4.         #progress { position: absolute; width: 5vw; height: 5vw;right:6%;top:75%; transition: .4s; }
  5.         #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); }
  6.         #g2 { cursor: pointer; fill: none; stroke: url(#grd); stroke-opacity: .8; stroke-width: 8; stroke-linecap: round; }
  7.         #prog { stroke: orange; stroke-opacity: 1; }
  8.         #btnFs { bottom: 20px; color: white; border-color: currentColor !important; }
  9.         @keyframes rot { to { transform: rotate(-360deg); } }
  10.         .pd-vid  {mix-blend-mode:overlay;width:100%; -webkit-mask: linear-gradient(to bottom,transparent,transparent,red);opacity: .90;}
  11. </style>

  12. <div id="pa">
  13.         <audio id="aud" src="https://music.163.com/song/media/outer/url?id=27258678" autoplay loop></audio>
  14.         <video class="pd-vid" src="https://img.tukuppt.com/video_show/2418175/00/02/20/5b51fecde9934.mp4" autoplay loop muted></video>
  15.         <svg id="progress" class="brightness" xmlns="http://www.w3.org/2000/svg" viewBox="-200 -200 400 400">
  16.                 <g id="g1"><title>ALT+X</title></g>
  17.                 <g id="g2"><title>调节进度</title></g>
  18.         </svg>
  19. </div>

  20. <script type="module">
  21.         import { FS } from 'https://638183.freep.cn/638183/web/js/pathprog.js';
  22.         import Dr from 'https://638183.freep.cn/638183/web/mod/svgdr.mod.js?v=1.1';

  23.         var dr = Dr.dr(progress);

  24.         dr.gradient('linearGradient', {id: 'grd',x1: 0, x2:0, y1: 0, y2: 0.75}, [['yellow',0],['orange',0.5],['yellow',1]]);
  25.         dr.path('M-150 0 A150 150 0 0 0 150 0').id('track').addTo(g2); //M-160 50 Q0 240,160 50
  26.         dr.path('M-150 0 A150 150 0 0 0 150 0').id('prog').addTo(g2);
  27.         dr.polygon('0 0,-25 -120,0 -90,25 -120,0 0').addTo(g1).rotates(10);
  28.         dr.circle(0, 0, 120).addTo('g1');
  29.         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;');

  30.         FS(pa, g1);
  31. </script>
复制代码
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-23 19:07 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-27 20:55 | 显示全部楼层
点评
回复

使用道具

随遇而安
少年歌行 守望千山 两周年庆 巳巳如意 一叶知秋 版主勋章 山高为峰 山外有山 樱果相依 闲花落
 楼主| 发表于 2025-10-27 20:55 | 显示全部楼层
点评
回复

使用道具

您需要登录后才可以回帖 登录 | 中文注册

本版积分规则

手机版|千山论坛 ( 冀ICP备2024055714号 )

GMT+8, 2026-1-31 12:00

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表