|
|
注意看第 66 行:
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <title>未命名</title>
- </head>
- <body>
- <style>
- #papa { margin: 0 0 0 calc(50% - 593px); width: 1024px; height: 640px; background: url('https://img-baofun.zhhainiao.com/pcwallpaper_ugc/live/6b845cb122d21044ae7765600701868d.mp4.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; overflow: hidden; position: relative; display: grid; place-items: center; z-index: 1; --state: running; }
- .leaf { position: absolute; font-size: 30px; top: -20%; color: AliceBlue; opacity: .64; animation: drop var(--duration) var(--delay) infinite linear var(--state); }
- @keyframes drop { to { top: 105%; transform: rotate(1turn); } }
- </style>
- <div id="papa"></div>
- <audio id="aud" src="https://i.mp3.wf/view.php/7b31f18dc176e74a835fe797dead8f90.mp3" autoplay loop></audio>
- <script>
- let leaves = ['❄','❄','❄','❄','❄','❄'];
- let script = document.createElement('script');
- script.src = 'https://638183.freep.cn/638183/web/api/plater_lrc.js';
- script.charset = 'utf-8';
- document.head.appendChild(script);
- script.onload = () => {
- HCPlayer({
- papa: '#papa',
- lrcAr: [ [1.05,"雪花飘梅花红-蔷薇团长",2.0],
- [3.1,"作词Lyricist:耀隆",2.9],
- [6,"作曲Composer:耀隆",3.1],
- [9.07,"编曲Arranger:福洲",1.9],
- [11.01,"和声Backing vocal:凌菲",2.0],
- [13.02,"混音师Mixing Engineer:顾潇予",2.0],
- [15.05,"制作人Producer:笑天| 唐欣宇",2.0],
- [17.03,"统筹Coordinator:张丹娴",2.0],
- [19.04,"出品人Creator:胡伟",2.0],
- [21.01,"LRC编辑:醉美水芙蓉",1.0],
- [22.02,"秋天晨雾朦朦胧胧",5.0],
- [27.03,"你匆匆消失无影无踪",5.0],
- [32.01,"雾有多浓我心就有多痛",4.1],
- [36.09,"离别心酸内心很惶恐",5.0],
- [41.09,"转眼已是冷冷寒冬",5.0],
- [46.09,"我对你还是情有独钟",5.0],
- [51.07,"孤独情种傲立在风雪中",5.0],
- [56.05,"我痴情一片不怕伤痛",5.0],
- [61.05,"雪花飘飘 梅花红红",5.0],
- [66.03,"风吹花瓣飘在雪花中",5.0],
- [71.03,"我的心痛已无法形容",5.0],
- [76.02,"何时再能涌进你怀中",5.0],
- [81,"雪花飘飘 梅花红红",4.1],
- [85.09,"风吹雪花落进梅花丛",5.0],
- [90.09,"我的爱情来去太从容",5.0],
- [95.07,"意犹未尽消失在雾中",25.0],
- [120.02,"转眼已是冷冷寒冬",5.0],
- [125.02,"我对你还是情有独钟",5.0],
- [130,"孤独情种傲立在风雪中",4.1],
- [134.1,"我痴情一片不怕伤痛",5.0],
- [139.08,"雪花飘飘 梅花红红",5.0],
- [144.06,"风吹花瓣飘在雪花中",5.0],
- [149.06,"我的心痛已无法形容",5.0],
- [154.05,"何时再能涌进你怀中",5.0],
- [159.04,"雪花飘飘 梅花红红",5.0],
- [164.03,"风吹雪花落进梅花丛",5.0],
- [169.02,"我的爱情来去太从容",5.0],
- [174.01,"意犹未尽消失在雾中",8.0],
- [182.03,"谢谢欣赏!",6]
- ],
- player_css: `
- right: -4px;
- bottom: 10px;
- color: white;
- --color1: snow;
- --color2: black;
- `,
- lrc_css: `
- bottom: 15px;
- --color: linear-gradient(rgba(216,204,184,.3),rgba(216,204,184,.7));
- --bg: linear-gradient(rgba(97,77,48,.25), rgba(97,77,48,.6));
- `,
- });
- }
- Array.from({length: 30}).forEach((item, key) => {
- item = document.createElement('span');
- item.className = 'leaf';
- item.innerHTML = leaves[key % leaves.length];
- item.style.cssText += `
- left: ${Math.random() * 100}%;
- font-size: ${30 + Math.floor(Math.random() * 30)}px;
- --duration: ${10 + Math.random() * 10}s;
- --delay: ${10 - Math.random() * 25}s;
- `;
- papa.appendChild(item);
- });
- </script>
- </body>
- </html>
复制代码
|
|