庆祝中国共产党成立101周年
<style>.papa { margin: auto; left:-100px; width: 1148px; height: 574px; top:120px; background: rgba(0,0,0,.6) url('https://wj1.zp68.com:812/lxx/yunhua/2022/06/29/nj25.gif') no-repeat center / cover; box-shadow: 0 2px 30px #000; overflow: hidden; position: relative; perspective: 1000px; }
.papa::before { position: absolute; content: ''; width: 1148px; height: 574px; background: url('https://wj1.zp68.com:812/lxx/yunhua/2022/06/29/nf.gif') no-repeat center /cover; opacity: 1; transform-style: preserve-3d; }
.papa:hover::before { animation: rot 4s forwards; }
.papa input { border: none; outline: none; opacity: .75; cursor: pointer; }
.papa p { margin: 0; padding: 0; }
.playbox { position: absolute; bottom: 10px; left: 10px; padding: 10px; width: fit-content; font: normal 1em sans-serif; color: ghostwhite; background: rgba(255,255,255,.25); backdrop-filter: blur(2px); overflow: hidden; box-shadow: 1px 2px 2px #000; text-shadow: 1px 1px 1px #000; z-index: 100; }
#btnplay { width: 30px; height: 30px; border-radius: 50%; }
#btnplay:hover { background: #aaa; color: #ff0000; }
@keyframes rot { to { transform: scale3d(0,0,-200) skew(0,30deg); } }
</style>
<div class="papa">
<div class="playbox">
<p id="geci" style="font-size: 1.2em">LRC Loading ... </p>
<p style="display: flex; align-items: center; gap: 4px; margin-top: 10px;">
<input id="btnplay" type="button" value=">" />
<input id="slider" type="range" min="0" max="100" value="0" />
<span id="per">0:0 | 0:0</span>
</p>
</div>
<audio id="aud" src="https://wj1.zp68.com:812/lxx/yunhua/2022/06/29/wbdlshj.mp3" autoplay="autoplay" loop="loop"></audio>
</div>
<script>
let slider = document.querySelector('#slider'),
aud = document.querySelector('#aud'),
per = document.querySelector('#per'),
btnplay = document.querySelector('#btnplay'),
geci = document.querySelector('#geci');
let slip = 0;
let lrcAr = [
['0.06','不朽的功勋 难忘的旋律'],
['5.26','红歌欣赏--我编斗笠送红军'],
['15.54','万泉河水清又清'],
['22.76','我编斗笠送红军'],
['30.16','军爱民来民拥军'],
['37.48','军民团结一家亲'],
['41.55','一家亲'],
['45.19','LRC编辑:宁静'],
['60.68','万泉河水清又清'],
['67.86','我编斗笠送红军'],
['74.95','军爱民来民拥军'],
['82.82','军民团结打敌人'],
['86.76','打敌人'],
['90.36','红区风光好'],
['96.92','军民一家亲'],
['104.85','万泉河水清又清'],
['113.10','我编斗笠送红军'],
['120.27','军民团结向前进'],
['129.92','谢谢欣赏']
];
slider.onmousedown = () => aud.pause();
slider.onchange = () => { aud.currentTime = slider.value * aud.duration / 100; aud.play(); }
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('playing', () => btnplay.value = '||');
aud.addEventListener('pause', () => btnplay.value = '>');
aud.addEventListener('timeupdate', () => {
let prog = 100 * aud.currentTime / aud.duration;
slider.value = prog;
per.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for(j=0; j<lrcAr.length; j++){
if(aud.currentTime >= lrcAr - slip){
geci.innerHTML = lrcAr;
}
}
});
let toMin = (sec) => {
if(!sec) return '0:00';
sec = parseInt(sec);
return parseInt(sec / 60) + ':' + parseFloat(sec % 60).toString().padStart(2,'0');
}
</script>
<br><br><br><br><br><br><br><br> 鼠标点击界面转换底图出来 css编辑歌词同步播放器 这也太漂亮了啊,{:10_402:} 每次进你帖子,没半小时都出不去,美极了{:10_401:} 浅笑 发表于 2022-6-30 12:08
这也太漂亮了啊,
笑笑好,我们又碰到了{:10_401:}
浅笑 发表于 2022-6-30 12:10
每次进你帖子,没半小时都出不去,美极了
这个是2个动图制作的,笑笑感觉打开慢不慢?
宁静 发表于 2022-6-30 12:11
这个是2个动图制作的,笑笑感觉打开慢不慢?
我这边不慢啊,
浅笑 发表于 2022-6-30 12:14
我这边不慢啊,
哦,那就好,这个动图文件有点大的
我就喜欢这动态画面!{:10_402:}