黑財神心咒 (藏音版)
<style>
#papa { margin: auto; left: -250px; width: 1100px; height: 700px; background: url('https://pic1.imgdb.cn/item/635a98b416f2c2beb1c78ae7.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; position: relative; display: grid; place-items: center; user-select: none; z-index: 1; --opt: .25; }
#mplayer { position: absolute; bottom: 10px; display: grid; grid-template-columns: auto auto auto; place-items: center; gap: 6px; user-select: none; }
#btnplay {border-radius: 50%; width: 50px; height: 50px; cursor: pointer; animation: rot linear 3s infinite; }
#prog { --ww: 0px; width: 300px; height: 12px; border: 1px solid green; border-radius: 6px; background: snow; opacity: .65; position: relative; }
#prog::before { position: absolute; content: ''; width: var(--ww); height: 12px; border-radius: 6px; background: snow linear-gradient(90deg, orange, red); opacity: .65; }
#audtime { font: normal 14px sans-serif; color: hsl(0,80%,50%); }
#lrc { --motion: cover1; --tt: 5s; --state: paused; position: absolute; bottom: 60px; font: bold 2.4em sans-serif; color: hsl(0,10%,90%); -webkit-background-clip: text; filter: drop-shadow(1px 1px 2px hsla(0,0%,0%,.95)); }
#lrc::before { position: absolute; content: attr(data-lrc); width: 20%; height: 100%; color: transparent; overflow: hidden; white-space: nowrap; background: linear-gradient(180deg,hsla(60,50%,50%,.45),hsla(0,100%,50%,.75)); filter: inherit; -webkit-background-clip: text; animation: var(--motion) var(--tt) linear forwards; animation-play-state: var(--state); }
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
@keyframes rot { to { transform: rotate(1turn); } }
</style>
<div id="papa">
<div id="lrc" data-lrc="黑財神心咒 (藏音版) ">黑財神心咒 (藏音版) </div>
<div id="mplayer">
<img id="btnplay" src="https://pic1.imgdb.cn/item/635a99ea16f2c2beb1ccd051.gif" alt="" />
<span id="prog"></span>
<span id="audtime">00:00 | 00:00</span>
</div>
</div>
<script>
(function() {
let aud = new Audio(), mKey = 0, mFlag = true, down = true;
aud.src = 'http://music.163.com/song/media/outer/url?id=1479590873.mp3';
aud.loop = true;
aud.autoplay = true;
if(aud.paused) btnplay.style.animationPlayState = 'paused';
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
prog.onclick = (e) => aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;
aud.addEventListener('seeked', () => calcKey());
aud.addEventListener('pause', () =>mState());
aud.addEventListener('play', () =>mState());
aud.addEventListener('timeupdate', () => {let prg = aud.currentTime * prog.offsetWidth / aud.duration < 6 ? 6 : aud.currentTime * prog.offsetWidth / aud.duration;prog.style.setProperty('--ww', prg + 'px');audtime.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);for(j=0; j<lrcAr.length; j++) {if(aud.currentTime >= lrcAr) {cKey = j;if(mKey === j) showLrc(lrcAr);else continue;}}});
let calcKey = () => {for(j = 0; j < lrcAr.length; j ++) {if(aud.currentTime <= lrcAr) {mKey = j - 1;break;}}if(mKey <0) mKey = 0;if(mKey > lrcAr.length - 1) mKey = lrcAr.length - 1;let time = lrcAr - (aud.currentTime - lrcAr);showLrc(time);};
let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = lrc.dataset.lrc = lrcAr;lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');lrc.style.setProperty('--state', 'running');mKey += 1;mFlag = !mFlag;};
let mState = () => aud.paused ? (btnplay.style.animationPlayState='paused',lrc.style.setProperty('--state', 'paused'),papa.style.setProperty('--opt','0')) : (btnplay.style.animationPlayState='running', lrc.style.setProperty('--state', 'running'),papa.style.setProperty('--opt','.25'));
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> 这个黑财神脚下还踩了个白的人{:4_173:} 这个播放器按钮很有特色,歌曲好长啊,27分钟。 藏文按钮 红影 发表于 2022-10-28 20:06
这个播放器按钮很有特色,歌曲好长啊,27分钟。
按钮就是那咒语了 马黑黑 发表于 2022-10-28 20:16
藏文按钮
啥都知道 绿叶清舟 发表于 2022-10-28 20:47
按钮就是那咒语了
这个黑财神看着有点凶{:4_173:} 绿叶清舟 发表于 2022-10-28 20:49
啥都知道
俺在阿里长大 清舟很想得出的,这个图图,这个音乐我随便怎么样都不会想到的{:4_170:} 欣赏 (藏音版)的黑財神心咒{:4_178:} 红影 发表于 2022-10-28 20:58
这个黑财神看着有点凶
要不咋叫黑呢{:4_189:} 小辣椒 发表于 2022-10-28 22:28
清舟很想得出的,这个图图,这个音乐我随便怎么样都不会想到的
百度一搜就想到了{:4_189:} 醉美水芙蓉 发表于 2022-10-28 21:37
欣赏清舟佳作!
谢谢芙蓉支持 马黑黑 发表于 2022-10-28 21:29
俺在阿里长大
啥时跑到西藏去了 绿叶清舟 发表于 2022-11-2 21:28
啥时跑到西藏去了
出生在那里 马黑黑 发表于 2022-11-2 21:29
出生在那里
从来没听说过啊 绿叶清舟 发表于 2022-11-2 21:34
从来没听说过啊
书本上没写有么 马黑黑 发表于 2022-11-2 22:06
书本上没写有么
你啥时书面报告过 绿叶清舟 发表于 2022-11-2 22:10
你啥时书面报告过
那倒是木有
页:
[1]
2