林忆莲 - 至少还有你
<div class="t_fsz"><table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_1915455">
<i class="pstatus"></i><br /><br /><style>
#mydiv {
margin: 0 0 0 calc(50% - 651px);
width: 1140px;
height: 640px;
background: url('https://pan.111t.net/view.php/fb1589fb1f0af14e65ebb66793e918c0.gif');
box-shadow: 0 0 8px 0 #000;
display: grid;
place-items: center;
position: relative;
}
#lrc {
position: absolute;
width: fit-content;
height: fit-content;
top: 5%;
font: bold 2.4em Sans-serif;
color: #fff;
text-shadow: 1px 1px 2px #000;
white-space: pre;
display: inherit;
place-items: inherit;
user-select: none;
--state: paused; --motion: cover2; --tt: 2s;
}
#lrc::before, #lrc::after { position: absolute; content: ''; cursor: pointer; }
#lrc::before {
content: attr(data-lrc);
width: 100%;
height: 100%;
white-space: pre;
width: 0;
left: 0;
color: orange;
overflow: hidden;
animation: var(--motion) var(--tt) linear forwards var(--state);
}
#lrc::after {
width: 50px;
height: 50px;
bottom: -60px;
background: red;
border-radius: 0%;
opacity: .7;
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
animation: rot 6s infinite linear var(--state);
}
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
@keyframes rot { to { transform: rotate(360deg); } }
</style>
<div id="mydiv">
<div id="lrc" data-lrc="HUACHAO">HUACHAO</div>
</div>
<audio id="aud" src="http://music.163.com/song/media/outer/url?id=4876355
" autoplay="autoplay" loop="loop"></audio>
<script>
(function() {
let mKey = 0, mFlag = true, slip = 0;
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
let mState = () => lrc.style.setProperty('--state', aud.paused ? 'paused' : 'running');
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 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); };
aud.addEventListener('timeupdate', () => {for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime - slip >= lrcAr) {cKey = j;if (mKey === j) showLrc(lrcAr);else continue;}}});
aud.addEventListener('play', mState, false);
aud.addEventListener('pause', mState, false);
aud.addEventListener('seeked', () => calcKey());
lrc.onclick = () => aud.paused ? aud.play() : aud.pause();
})();
</script>
</td></tr></table>
歌好听,制作漂亮。欣赏新新好帖{:4_187:} 问好老师,欣赏精彩佳作,谢谢分享!{:4_187:}
欣赏岩新新精彩的制作{:4_187:} 很喜欢的一首歌,欣赏新新精彩制作 红影 发表于 2023-6-24 10:14
歌好听,制作漂亮。欣赏新新好帖
谢谢欣赏! 梦缘 发表于 2023-6-24 10:37
问好老师,欣赏精彩佳作,谢谢分享!
谢谢欣赏! 小辣椒 发表于 2023-6-24 16:51
欣赏岩新新精彩的制作
谢谢欣赏! 绿叶清舟 发表于 2023-6-24 19:23
很喜欢的一首歌,欣赏新新精彩制作
谢谢欣赏! 岩新新 发表于 2023-6-24 23:10
谢谢欣赏!
客气了,问好新新,晚上好{:4_187:}
页:
[1]