大风吹--翻唱:顾-念 TO:顾-念
<style>#papa { left: -344px; width: 1280px; height: 770px; top: 150px; background: #ccc url('https://wj.zp68.com/lxx/yunhua/2022/10/02/gnbj.gif') no-repeat center/cover; box-shadow: 3px 3px 20px #000; display: grid; place-items: center; user-select: none; position: relative; z-index: 1; }
#mplayer { position: absolute; bottom: 30; width: 300px; height: 80px;left: 814px; top: 650px; 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, hsla(120,10%,20%,.65), hsla(120,50%,50%,.65)); border-radius: 50%; opacity: .75; }
#btnwrap, #prog { position: absolute; display: grid; place-items: center; transition: .7s; }
#btnwrap { --yy: -15px; width: 40px; height: 40px; transform: rotate(45deg); border-radius: 6px; opacity: 0; }
#btnplay { width: 20px; height: 20px; transform: translateX(3px); 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: 300px; height: 16px; border-radius: 16px; background: linear-gradient(90deg, hsla(120,50%,10%,.55), hsla(120,100%,50%,.65) 50%, hsla(0,100%,100%,.45) 0); border: 1px solid hsla(0,100%,100%,.45); font: normal 14px / 16px sans-serif; color: hsl(300,50%,20%); }
#lrc { --motion: cover1; --tt: 5s; --state: paused; position: absolute; top: 115px; font: bold 2.8em sans-serif; color: hsl(0,10%,90%); -webkit-background-clip: text; filter: drop-shadow(1px 1px 2px hsla(0,100%,0%,.85)); }
#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,100%,50%,.75),hsla(120,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%; } }
</style>
<div id="papa">
<img src="https://wj.zp68.com/lxx/yunhua/2022/10/02/gnyu.jpg" alt="" style="position: absolute; transform: translate(-80px, 160px); mix-blend-mode: multiply;" />
<img src="https://wj.zp68.com/lxx/yunhua/2022/10/02/gnmaq.gif" alt="" style="position: absolute; transform: translate(50px,-120px); mix-blend-mode: multiply;" />
<div id="lrc" data-lrc="花潮论坛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 mKey = 0, mSeek = false, mFlag = true, aud = new Audio();
let lrcAr = [,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
aud.src = 'https://wj.zp68.com/lxx/yunhua/20211213/yy/01.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, hsla(120,50%,10%,.55), hsla(120,100%,50%,.65) ' + aud.currentTime / aud.duration * 100 + '%, hsla(0,100%,100%,.45) 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.setProperty('--state', 'paused')) : (btnplay.style.display = 'none', btnpause.style.display = 'block', lrc.style.setProperty('--state', '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);};
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> @顾-念 其实顾-念的翻唱非常好听,就是最近发的少了 从你的翻唱专辑找了一首,做个帖送你们,祝节日快乐! 套用一个黑黑的代码
用了黑黑的素材,谢谢~~{:4_189:}@马黑黑 歌好,制作优美 马黑黑 发表于 2022-10-4 20:27
歌好,制作优美
黑黑,我越看越别扭,把播放器200改回300了
这样大气一点
字体大了0.2就算了
小辣椒 发表于 2022-10-4 20:31
黑黑,我越看越别扭,把播放器200改回300了
这样大气一点
根据情景修改 马黑黑 发表于 2022-10-4 20:39
根据情景修改
这个图大,播放器不能改小 没看清标题就进来了,以为要给顾念过儿童节也, 我看成了 大风车{:4_189:} 入目是一片怡人的水流,好美。顾念唱歌真好听{:4_187:} 唱得很好啊,声音有点沙哑,有磁性,好听{:4_199:} 溪流上的鸟儿和水里的鱼儿都很灵动,这个歌词的配色也漂亮,亲爱的制作很赞{:4_187:} 小辣椒 发表于 2022-10-4 20:16
@顾-念
谢谢小辣椒,看到信息就来收礼,哈哈。
咋这厉害动态的图,看着心情就好!
不说谢了,抱拳!
好好欣赏美图……
愿善良的人都被温柔以待! 小九 发表于 2022-10-4 20:44
没看清标题就进来了,以为要给顾念过儿童节也, 我看成了 大风车
嗯,大风车吱遛遛转 欣赏精美音画佳作! 辣椒做得真好,动感的美,老哥唱得很到位。。{:4_204:}{:4_204:} 小辣椒 发表于 2022-10-4 20:40
这个图大,播放器不能改小
该多大多大 唱得好,做得更好,那小鸟和鱼儿特别配合音乐的节奏{:4_189:}
页:
[1]
2