|
|

楼主 |
发表于 2023-8-25 12:09
|
显示全部楼层
本帖最后由 马黑黑 于 2023-8-25 12:27 编辑
帖子代码
- <style>
- #papa { margin: 0 0 0 calc(50% - 593px); width: 1024px; height: 640px; background: url('https://638183.freep.cn/638183/t23/webp2/reborn.webp') no-repeat center/cover; box-shadow: 4px 4px 8px black; overflow: hidden; display: grid; place-items: center; z-index: 1; position: relative; --state: running; }
- @keyframes move { to { top: 90%; } }
- </style>
- <div id="papa"></div>
- <audio id="aud" src="https://yinpin.s3-us-east-1.ossfiles.com/reborn.mp3" autoplay loop crossorigin="anonymous"></audio>
- <script>
-
- (function() {
- let script = document.createElement('script');
- script.src = 'https://638183.freep.cn/638183/web/api/xyppz_lrc.js';
- script.charset = 'utf-8';
- document.head.appendChild(script);
- let geci = [ [1,"重 生",2] ];
- script.onload = () => {
- HCPlayer({
- papa: '#papa',
- lrcAr: geci,
- lrc_css: `
- left: 30px;
- top: 20px;
- animation: move 10s infinite alternate linear var(--state);
- --bg: linear-gradient(rgba(250,10,10,.2),rgba(255,0,0,.75));
- `,
- player_css: `
- bottom: 100px;
- right: 100px;
- --len: 4px;
- --color: #eee;
- `,
- fs_css: 'background: red; color: white;',
- pinpu_num: 60,
- pinpu_color: 'red',
- });
- };
- })();
- </script>
复制代码 pinpu_num 和 pinpu_color 分别是频谱条数和频谱颜色,后者不设置或设为空值 pinpu_color: '', 则使用随机色;频谱帽颜色与时间信息文本共享 --color 变量指定的颜色;频谱条的厚度(或叫宽度吧)由变量 --len 设定。
|
|