情满酒歌 TO:队长 节日快乐!
<style>#papa { left: -380px; width: 1350px; height: 750px; top:150px; background: #ccc url('https://wj.zp68.com/lxx/yunhua/2022/10/02/dzbj.gif') no-repeat center/cover; box-shadow: 3px 3px 20px #000; display: grid; place-items: center; position: relative; z-index: 1; }
#mplayer { position: absolute; left: 800px; top: 600px; width: 300px; height: 80px; user-select: none; display: grid; place-items: center; cursor: pointer; }
#mplayer:hover #btnwrap, #mplayer:hover #prog { transform: translateY(var(--yy)); }
#mplayer:hover #btnwrap { background: linear-gradient(to top right, red, green); border-radius: 50%; opacity: .75; }
#btnwrap, #prog { position: absolute; display: grid; place-items: center;transition: .5s; }
#btnwrap { --yy: -15px; width: 40px; height: 40px; transform: rotate(45deg); border: 1px solid tan; border-radius: 6px; opacity: .25; }
#btnplay { width: 20px; height: 20px; background: #eee; clip-path: polygon(0 0, 0% 100%, 100% 50%); }
#btnpause { width: 2px; height: 20px; border-style: solid; border-width: 0px 4px; border-color: transparent #eee; display: none; }
#prog { --yy: 20px; width: 240px; height: 16px; border-radius: 10px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,55,0,5) 100%, transparent 0); border: 1px solid lightgreen; font: normal 14px/16px sans-serif; color: snow; }
#lrc { position: absolute; top: 150px;left: 450px; font: bold 2.5em sans-serif;font-family:微软雅黑; filter:drop-shadow(#FFFFFF 1px 0 0)drop-shadow(#FFFFFF 0 1px 0)drop-shadow(#FFFFFF -1px 0 0) drop-shadow(#FFFFFF 0 -1px0);color: transparent; letter-spacing: 2px; background: linear-gradient(50deg, #000080, #ff0000, #000000, #00f000) 100% 100% / 200% 200%; background-clip: text; -webkit-background-clip: text; }
#plane1{position: absolute;left: 0px;top: 0;width: 80px;offset-distance: 0;offset-path: path("M0 40 Q500 180, 600 160 T1330 40");animation: move 8s linear infinite;}
#plane {position: absolute;left: 60px;top: 0;width: 80px;offset-distance: 0;offset-path: path("M0 40 Q500 180, 600 160 T0 40");animation: move 8s linear infinite;}
@keyframes bgMove1 { from { background-position: 0 0; } to { background-position: -100% 0; } }
@keyframes bgMove2 { from { background-position: 0 0; } to { background-position: -100% 0; } }
@keyframes move { to { offset-distance: 100%;} }
</style>
<div id="papa">
<img id="plane1" src="https://wj.zp68.com/lxx/yunhua/2022/10/02/dzfj.png" alt="" />
<img id="plane" src="https://wj.zp68.com/lxx/yunhua/2022/09/19/fj.png" alt="" />
<div id="lrc">花潮lrc在线</div>
<div id="mplayer">
<div id="btnwrap"><span id="btnplay"></span><span id="btnpause"></span></div>
<div id="prog">00:00 | 00:00</div>
</div>
</div>
<script>
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
let mKey = 0, mSeek = false, mFlag = true;
let aud = new Audio();
aud.src = 'https://wj.zp68.com/lxx/yunhua/2022/10/02/dzqmjg.mp3';
aud.autoplay = true;
aud.loop = true;
btnwrap.onclick = () => aud.paused ? aud.play() : aud.pause();
prog.onclick = (e) => aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;
aud.addEventListener('pause', () => mState());
aud.addEventListener('play', () => mState());
aud.addEventListener('seeked', () => calcKey());
aud.addEventListener('timeupdate', () => {
prog.style.background= 'linear-gradient(90deg,rgba(0,0,0,.45), rgba(255,55,0,5) ' + aud.currentTime / aud.duration * 100 + '%, transparent 0)';
prog.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for(j=0; j<lrcAr.length; j++) {
if(aud.currentTime >= lrcAr) {
if(mKey === j) showLrc(lrcAr);
else continue;
}
}
});
let mState = () => aud.paused ? (btnplay.style.display = 'block', btnpause.style.display = 'none', lrc.style.animationPlayState = 'paused') : (btnplay.style.display = 'none', btnpause.style.display = 'block', lrc.style.animationPlayState = 'running');
let showLrc = (time) => {
lrc.style.animation = (mFlag ? 'bgMove1 ' : 'bgMove2 ') + time + 's linear forwards';
lrc.innerHTML = lrcAr;
mKey += 1;
mFlag = !mFlag;
}
let calcKey = () => {
for(j = 0; j < lrcAr.length; j ++) {
if(aud.currentTime <= lrcAr) {
mKey = j - 1;
break;
}
}
if(mKey <0) mKey = 0;
let mtime = lrcAr - (aud.currentTime - lrcAr);
showLrc(mtime);
}
let toMin = (val)=> {
if (!val) return '00:00';
val = Math.floor(val);
let min = parseInt(val / 60), sec = parseFloat(val % 60);
if(min < 10) min = '0' + min;
if(sec < 10) sec = '0' + sec;
return min + ':' + sec;
}
</script>
<br><br><br><br><br><br><br><br><br><br><br><br> @加林森
队长节日快乐,好好休养祝早日康复{:4_179:} 谢谢岁月的粒子加频谱效果@走过岁月 小辣椒 发表于 2022-10-3 15:37
@加林森
来了来了。谢谢小辣椒!{:4_204:} 小辣椒 发表于 2022-10-3 15:38
队长节日快乐,好好休养祝早日康复
好的。我自己也在努力好起来。{:5_154:} 加林森 发表于 2022-10-3 15:55
来了来了。谢谢小辣椒!
队长来了,好好休息,不急着玩的 小辣椒 发表于 2022-10-3 15:58
队长来了,好好休息,不急着玩的
嗯嗯。我先看看大家的帖。 加林森 发表于 2022-10-3 15:56
好的。我自己也在努力好起来。
多休息几天,要巩固好 小辣椒 发表于 2022-10-3 15:59
多休息几天,要巩固好
是的。 加林森 发表于 2022-10-3 15:59
嗯嗯。我先看看大家的帖。
好的,就看看~~~暂时别做 师傅咱俩配合的不错,俺给他打针,你给他灌酒。。。。{:5_117:} 东篱闲人 发表于 2022-10-3 16:04
师傅咱俩配合的不错,俺给他打针,你给他灌酒。。。。
哈哈~~~祝福一样的,希望队长早日康复 小辣椒 发表于 2022-10-3 16:08
哈哈~~~祝福一样的,希望队长早日康复
嗯嗯,加加可是水区的宝呢。。。 借帖祝队长队长早日生龙活虎 小辣椒 发表于 2022-10-3 16:00
好的,就看看~~~暂时别做
嗯嗯。 借小辣椒朋友的美帖祝愿队长早日康复。 小辣椒 发表于 2022-10-3 16:00
好的,就看看~~~暂时别做
好的。头还有点晕呢。 东篱闲人 发表于 2022-10-3 16:04
师傅咱俩配合的不错,俺给他打针,你给他灌酒。。。。
{:5_117:} 马黑黑 发表于 2022-10-3 16:15
借帖祝队长队长早日生龙活虎
谢谢老黑啊。节日快乐!{:4_191:}
页:
[1]
2