|
|

楼主 |
发表于 2025-10-10 21:01
|
显示全部楼层
帖子代码
- <style>
- @import 'https://638183.freep.cn/638183/web/tz/tz.c.trial.css';
- .pa { --offsetX: 81px; --bg: tan url('https://638183.freep.cn/638183/t24/w6/xku.webp') no-repeat center/cover; --ma-size: 60px; }
- .ma { bottom: 60px; }
- .btnFs { right: 20px; bottom: 20px; }
- .prog { bottom: 20px; width: 300px; height: 8px; background: linear-gradient(90deg, white var(--prg), transparent 0); border-color: white; }
- .lz { offset-path: ellipse(20% 15% at 75% 20%); -webkit-offset-path: ellipse(25% 25% at 70% 30%); }
- @keyframes climb { from { transform: skew(-2deg); } to { transform: skew(2deg); } }
- </style>
- <div id="pa" class="pa"></div>
- <script type="module">
- import TZ from 'https://638183.freep.cn/638183/web/tz/tz.c.trial.js';
- const tz = TZ.TZ('pa');
- // 视频
- tz.add('video', '', 'pd-vid', {
- src: 'https://img.tukuppt.com/video_show/2629112/00/01/92/5b4d87a01df23.mp4'
- });
- // 音频
- tz.add('audio', '', '', {
- src: 'https://music.163.com/song/media/outer/url?id=2749430420'
- });
- // 播放器
- tz.add('div', 'ring', 'ma', {title: 'Alt+X'}).playmp3();
- // 播放器绕圈粒子
- tz.lzRing(10, ring, {w: 16, h: 16, bg: 'white'});
- // 随机分布粒子 : 椭圆路径运动
- tz.lzRan(20, tz.pa, {
- w: 30,
- h: 20,
- bg: `url('https://638183.freep.cn/638183/small/texture/pgy.png') no-repeat center/cover`,
- className: 'lz path-ani',
- duration: 20,
- delay: -20
- });
- // 音频播放进度
- tz.bgprog();
- // 全屏
- tz.fs();
- </script>
复制代码
|
|