本帖最后由 马黑黑 于 2024-2-28 08:46 编辑
帖子代码
<style>
#papa { margin: 0 0 0 calc(50% - 621px); display: grid; place-items: center; width: 1080px; height: 683px; background: url('https://638183.freep.cn/638183/t24/1/bbce.jpeg') no-repeat center/cover, radial-gradient(black, rgba(0,150,150,.2)); background-blend-mode: screen; box-shadow: 3px 3px 20px #000; overflow: hidden; position: relative; z-index: 1; }
#lrc { position: absolute; top: 10px; font: bold 2.4em sans-serif; color: gray; text-shadow: 1px 1px 1px rgba(250,250,250,.45); --ani: lrcGo1; --duration: 1s; }
#lrc::before { position: absolute; content: attr(data-lrc); width: 100%; height: 100%; color: transparent; background: repeating-radial-gradient(circle, orange, snow 28px); background-clip: text; -webkit-background-clip: text; clip-path: inset(0 100% 0 0); animation: var(--ani) var(--duration) linear forwards var(--state); border-bottom: 2px dotted gray; }
#mplayer { position: absolute; bottom: 10px; text-align: center; color: lightblue; }
#mplayer::before { position: absolute; content: attr(data-tt); left: 0; bottom: 25px; width: 100%; text-align-last: justify; }
#mprog { width: 280px; accent-color: orange; outline: none; cursor: pointer; opacity: .7; }
#mprog:focus { accent-color: gold; }
#btnplay { width: 50px; height: 50px; cursor: pointer; animation: rotating 6s infinite linear var(--state); }
#btnplay:hover { filter: invert(.2); }
li-zi { position: absolute; background: url('https://638183.freep.cn/638183/t23/btn/y5j.png') no-repeat center/cover; offset-path: path('M0 400 Q570 -260 1140 400'); offset-distance: 0; animation: move 10s linear infinite var(--state), rotating 5s infinite var(--state); }
@keyframes rotating { to { transform: rotate(360deg); } }
@keyframes lrcGo0 { to { clip-path: inset(0 0 0 0); } }
@keyframes lrcGo1 { to { clip-path: inset(0 0 0 0); } }
@keyframes move { to { offset-distance: 100%; } }
</style>
<div id="papa">
<audio src="https://music.163.com/song/media/outer/url?id=2016147084"></audio>
<div id="mplayer" data-tt="0:00 0:00">
<img id="btnplay" src="https://638183.freep.cn/638183/t23/btn/y5j.png" alt="" /><br>
<input id="mprog" type="range" min="0" max="100" step="any" value="0" title="调节进度" />
</div>
<div id="lrc" data-lrc="HuaChao LRC">HuaChao LRC</div>
</div>
<script>
var geci = [ [0.58,"演唱:漆柚/JMJ",0.7], [1.24,"和声:漆柚",0.7], [1.94,"人声后期:漆柚",0.7], [2.67,"分轨混音:LW",0.8], [3.46,"封面绘制:某王ty",0.7], [4.19,"PV制作:艾茯",0.7], [4.89,"题字:阿予",0.8], [5.65,"美工:李殊知",0.7], [6.38,"统筹:林吉他",5.3], [11.66,"瑞雪 尽后好时节 是一年迎春天",3.7], [15.34,"千家把 旧桃换 万灶争 开宴",3.1], [18.4,"神仙也艳羡 红尘内炊烟暖",3.0], [21.4,"自天上到人间",2.3], [23.65,"偏偏 欢声满长街 有瑞兔谒门前",3.8], [27.44,"讨杯屠苏酒 有谁 酿了千年",2.9], [30.39,"锣鼓喧 灯火夜 且听你 许个愿",4.9], [35.3,"愿此夜 似永夜明月 长照无眠",4.2], [39.45,"东厢外楹联 摘了又贴",2.3], [41.8,"三百杯 笑饮至酡颜 醉了重添",3.0], [44.84,"竟不辨 今夕何年",2.4], [47.26,"西窗边 借千灯展卷 旧画新看",4.1], [51.37,"再绘得一笔 新福兆丰年",3.0], [54.4,"愿天地 从此真得福泽绵延",5.2], [59.62,"瑞雪 尽后好时节 是一年迎春天",3.8], [63.43,"朱门上 绘神仙 花果供 八仙",2.9], [66.36,"天上谁曾嫌 四海中爆竹烦",3.1], [69.42,"摇身便到人间",2.1], [71.56,"趁这 客来满长街 有瑞兔谒门前",3.9], [75.45,"讨杯屠苏酒 饮完 借句吉言",2.9], [78.38,"锣鼓喧 明月夜 向天地 许个愿",4.5], [83.29,"愿此年 是丰年新岁 身复康健",4.2], [87.47,"腊酒祛冬寒 换了春衫",2.3], [89.79,"扫庭院 看梁间新鹊 去了又还",3.1], [92.87,"不觉便 喜上眉睫",2.4], [95.23,"门扉外 蘸丹青一点 旧字新写",4.1], [99.33,"盼添得几笔 多喜乐团圆",3.0], [102.36,"愿旧人 从此后得岁岁相见",5.5], [131.22,"有好风 好月 吹遍 枝头梅雪",6.4], [138.48,"难得 如此良夜",4.5], [143.29,"千盏灯 流转在 天水河岸",4.1], [147.42,"曾与君等 同看 今朝便十分圆满",8.3], [167.35,"愿此夜 似永夜明月 长照无眠",3.6], [171.45,"东厢外楹联 摘了又贴",2.4], [173.83,"三百杯 笑饮至酡颜 醉了重添",3.0], [176.83,"竟不辨 今夕何年",2.4], [179.26,"西窗边 借千灯展卷 旧画新看",3.9], [183.47,"再绘得一笔 新福兆丰年",2.9], [186.42,"愿天地 从此真得福泽绵延",4.4] ];
var sF = document.createElement('script');
sF.charset = 'utf-8';
sF.src = 'https://638183.freep.cn/638183/web/js/rangelrc2024-01.js';
document.querySelector('body').appendChild(sF);
sF.onload = () => {
Array.from({length: all=40}).forEach(star => {
var size = 30 + Math.floor(Math.random() * 30);
star = document.createElement('li-zi');
star.style.cssText += `
left: 0;
top: ${Math.random() * 140 + 60}px;
width: ${size}px;
height: ${size}px;
opacity: ${Math.random() * 0.4 + 0.4};
animation-delay: -${Math.random() * 10}s, -${Math.random() * 5}s;
`;
papa.prepend(star);
});
};
</script>
|