本帖最后由 马黑黑 于 2024-2-27 08:42 编辑
代码
<style>
#papa { margin: 30px 0 30px calc(50% - 681px); width: 1200px; height: 575px; background: url('https://638183.freep.cn/638183/t24/1/14u.jpg') no-repeat center/cover, url('https://638183.freep.cn/638183/Pic/81/leaf2.png') no-repeat 760px 100%, url('https://638183.freep.cn/638183/small/rose.jpg') no-repeat 0 110%; background-blend-mode: darken; box-shadow: 3px 3px 20px #000; position: relative; z-index: 1; }
#lrc { position: absolute; left: 20px; top: 10px; font: bold 2.4em sans-serif; color: gray; text-shadow: 1px 1px 1px rgba(0,0,0,.45); --ani: lrcGo1; --duration: 1s; }
#lrc::before { position: absolute; content: attr(data-lrc); width: 100%; height: 100%; color: transparent; background: repeating-radial-gradient(orange, gray 6px); 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 dashed gray; }
#btnplay { position: absolute; top: 90px; left: 100px; width: 200px; height: 200px; opacity: .7; animation: rotating 6s linear infinite var(--state); cursor: pointer; }
ye-zi { position: absolute; left: calc(50% - 0.5 * var(--ww)); top: 0; width: var(--ww); height: 100px; border-radius: 60%; background: repeating-radial-gradient(gray, tan 20%); transform-origin: 50% 100%; transform: rotate(var(--deg)); }
@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); } }
</style>
<div id="papa">
<audio src="https://file.uhsea.com/2402/97ec26614183d020eb768b93f297df5bES.mp3" autoplay loop></audio>
<div id="lrc" data-lrc="HUACHAO LRC">HUACHAO LRC</div>
<div id="btnplay"></div>
</div>
<script>
var geci = [ [2,"那些寂寞的花朵 是春天遗失的嘴唇 ——海子",6], [10,"一颗狼星_许篮心 / 月亮和祂的诗人们",6], [20.0,"出品:月亮和祂的诗人们",6], [28.92,"我和读我的人,是两朵生病的花",12.2], [41.85,"生长着野草心脏,与野花耳朵",13.6], [56.67,"在睡眠淡季,寂寞地",7.5], [64.93,"收集雨的吻痕、梦的乳牙",7.5], [72.96,"一生躲在诗里的拾荒者",8.6], [82.64,"迷失于风的韵脚,爱意哀伤决堤",12.0], [95.48,"长日诗意饥荒,心事被夜鸟捡去",13.8], [110.43,"在风的口中,我约等于被遗忘的伤痕",17.7], [129.35,"疼到无边无际,无边无际",14.6], [149.21,"等待谁,于长吻之末,回收我的生命",23.0] ];
var sF = document.createElement('script');
sF.charset = 'utf-8';
sF.src = 'https://638183.freep.cn/638183/web/js/btnlrc-01.js';
document.querySelector('body').appendChild(sF);
Array.from({length: all = 5}).forEach((item,key) => {
item = document.createElement('ye-zi');
item.style.cssText += `--ww: 60px; --deg: ${360 / all * key}deg;`;
btnplay.prepend(item);
});
</script>
|