|
|

楼主 |
发表于 2025-11-9 19:24
|
显示全部楼层
帖子代码
- <style>
- @import 'https://638183.freep.cn/638183/web/tz/tz.min.css';
- .pa {
- --offsetX: 81px;
- --bg: url('https://638183.freep.cn/638183/t24/6/gruj.jpg') no-repeat center/cover;
- }
- .gRot { animation: rotate 8s linear infinite var(--state); }
- #msvg { position: absolute; bottom: 20px; }
- </style>
- <div class="pa">
- <svg id="msvg" width="150" height="150" xmlns="http://www.w3.org/2000/svg" viewBox="-100 -100 200 200">
- <g stroke="lightyellow" stroke-width="10">
- <ellipse id="track" cx="0" cy="0" rx="95" ry="85" fill="none" />
- <ellipse id="prog" cx="0" cy="0" rx="95" ry="85" fill="none" stroke="darkorange" />
- </g>
- </svg>
- </div>
- <script type="module">
- import TZ from 'https://638183.freep.cn/638183/web/tz/tz.v3.js?v0';
- const tz = TZ.TZ('pa');
- tz.add('audio', '', '', {
- src: 'https://music.163.com/song/media/outer/url?id=1964981429'
- });
- tz.add('video', '', 'pd-vid', {
- src: 'https://img.tukuppt.com/video_show/7165162/00/20/20/5f20f36d9ecbc.mp4',
- style: 'opacity: 0.3;'
- });
- tz.svgsonsRot(4, 'msvg', 'path', {
- d: 'M0 0 C-100 100,100 100,0 0',
- fill: 'gold'
- }).playmp3();
- tz.svgprog('msvg', 'track', 'prog');
- </script>
复制代码 如果需要全屏按钮,在JS代码中加入: tz.fs().style('top: 20px; right: 20px; color: yellow');
|
|