亚伦影音工作室 发表于 2022-10-30 15:44

徐丽静 - 旧梦(DJ默涵版)

本帖最后由 亚伦影音工作室 于 2024-12-25 14:23 编辑 <br /><br /><style>
#papa { left: -310px; width: 1200px; height: 620px;top:0px;background: url('https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/c29fc1ab04a249a8d0686cf960e98c5e.jpg') no-repeat center/cover; box-shadow: 1px 1px 1px #000; position: relative; display: grid; place-items: center; user-select: none; overflow: hidden; z-index: 1; --opt: .25; }
#mplayer { position: absolute; bottom: 10px; left: 50px; display: grid; grid-template-columns: auto auto auto; place-items: center; gap: 6px; user-select: none;z-index: 10;}
#btnplay { width: 60px; height: 60px; cursor: pointer; animation: rot linear 3s infinite;z-index: 10;}
#prog { --ww: 0px; width: 900px; height: 2px;border-radius: 6px; background: snow; opacity: .65; position: relative;z-index: 10;}
#prog::before { position: absolute; content: ''; width: var(--ww); height: 2px; border-radius: 4px; background: snow linear-gradient(90deg,red,Maroon); opacity: .65;z-index: 10;}
#audtime { font: normal 14px 微软雅黑, sans-serif; color: #ffffff; }
#lrc { --motion: cover1; --tt: 5s; --state: paused; position: absolute; bottom: 100px; font: bold 2.8em悟空大字库, sans-serif; color: #ccc080; -webkit-background-clip: text; filter: drop-shadow(2px 2px #000000);z-index: 10;}
#lrc::before { position: absolute; content: attr(data-lrc); width: 20%; height: 100%; color: transparent; overflow: hidden; white-space: nowrap;background: linear-gradient(45deg, #FA0909 14%,#FDFF08 31%,#F2F1F3 46%,#00FF90 72%,#6452F2 91%); filter: drop-shadow(1px 1px #000000)contrast(110%)brightness(140%); -webkit-background-clip: text; animation: var(--motion) var(--tt) linear forwards; animation-play-state: var(--state); z-index: 10; }
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
@keyframes rot { to { transform: rotate(1turn); } }

#flip-wrapper {
position: relative;
margin: 0px auto;
width: 1200px;
height: 620px;
z-index: 1;
}
/* this need to be here - i dont know why?*/
#flip-wrapper {
-webkit-perspective: 2500;
          perspective: 2500;
}

#flip-content {
width: 100%;
height: 100%;
-webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
transition: all 3s linear;
}

#flip-wrapper:hover #flip-content {
-webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.face {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
          backface-visibility: hidden;
background:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/f2a53a1e6e81b4cd7c41058d2ebd578d.jpg)0 0/100% 100%;
}

.back.face {
display: block;
-webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
box-sizing: border-box;
background:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/d386798031aea2db88aea1629093d931.jpg)0 0/100% 100%;
}

</style>


<div id="papa">
        <div id="flip-wrapper">
<div id="flip-content">
<div class="face">
</div>
<div class="back face">
</div>
</div>
</div>
        <div id="lrc" data-lrc="花潮lrc在线">花潮lrc在线</div>
        <div id="mplayer">
                <img id="btnplay" src="https://365.tf/disk/tf/1667054655.png" alt="" />
                <span id="prog"></span>
                <div id="audtime" data-cur="00:00" data-dur="00:00"></div>
        </div>
</div>

<script>
(function() {
        let aud = new Audio(), mKey = 0, mFlag = true, down = true;
let lrcAr = [
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
        aud.src = 'https://www.qqmc.com/mp3/music229348324.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;};
        document.title = '';
})();
</script>

相约爱晚亭 发表于 2022-10-30 15:55

欣赏音画佳作!

醉美水芙蓉 发表于 2022-10-30 17:53

红影 发表于 2022-10-30 20:45

漂亮,欣赏亚伦老师精美制作{:4_204:}
页: [1]
查看完整版本: 徐丽静 - 旧梦(DJ默涵版)