撒哈拉的雨 发表于 2022-5-21 16:41

本帖最后由 撒哈拉的雨 于 2022-11-1 23:32 编辑 <br /><br />蜻蜓 发表于 2022-5-21 16:39
宁静说你是前辈级人物,宁静做的也很漂亮,你制作的就更好了
宁静现在玩H5 我还不会,最近才捡起来播放器,慢慢来了


<meta charset="UTF-8">
<style>
#ywqs { left: -280px; width: 1280px; height: 700px;top:150px; font-size: 14px; background: url('https://pan.doliy.cn/filestores/2022/11/01//8fdff1c9505b22e6cfb01b66b7408dda.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; position: relative; display: grid; place-items: center; user-select: none; overflow: hidden; z-index: 1; --opt: .25; }
#mplayer { position: absolute; bottom: 15px; left: 50px; display: grid; grid-template-columns: auto auto auto; place-items: center; gap: 6px; user-select: none;z-index: 1;}
#btnplay { width: 60px; height: 60px; cursor: pointer; animation: rot linear 9s infinite;z-index: 1; -webkit-mask-image:radial-gradient(black 30% ,transparent 95%) }
#prog { --ww: 0px; width: 950px; height: 3px;border-radius: 6px; background: Lavender; opacity: .66; position: relative;z-index: 1;}
#prog::before { position: absolute; content:'';width: var(--ww); height: 3px; border-radius: 4px; background:snow linear-gradient(90deg,red,Maroon); opacity: .66;z-index: 1;   }
#audtime { font: normal 12px 微软雅黑, sans-serif; color: #222; }
#lrc { --motion: cover1; --tt: 5s; --state: paused; position: absolute; bottom: 85px; font: bold 3em微软雅黑, sans-serif; color: #ccc080; -webkit-background-clip: text; filter: drop-shadow(2px 2px #000000);z-index: 1;}
#lrc::before { position: absolute; content: attr(data-lrc); width: 22%; 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: 1; }
@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: 1280px; height: 700px; z-index: 1;}

#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://pan.doliy.cn/filestores/2022/11/01//cfa85aed8d5a76fbd1eb1b38220c1af2.jpg)0 0/100% 100%;}
.back.face {display: block; -webkit-transform: rotateY(180deg); transform: rotateY(180deg); box-sizing: border-box;background:url(https://pan.doliy.cn/filestores/2022/11/01//4c4d3ad3ab8cc1f5aba1c08700f36555.jpg)0 0/100% 100%;}</style>
<div id="ywqs"><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://pan.doliy.cn/filestores/2022/11/01//391c6cc6e8fc0f88fcfef7a2087ebb86.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://pan.doliy.cn/filestores/2022/11/01//fb44cb4a7a2dc530386813cb6239cb78.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><style>#xzdt::before {z-index:1; position: absolute; content: ''; background: url('//img-qn-1.51miz.com/preview/element/00/01/24/04/E-1240473-46F7B726.gif'); left: 454px; top: 919px; width:200px; height: 200px; border-radius: 50%; mix-blend-mode: screen; animation: rot 5s infinite;}@keyframes rot { to { transform: rotate(1turn); } }</style><div id="xzdt"></script>

<br><br><br><br>

蜻蜓 发表于 2022-5-21 16:45

撒哈拉的雨 发表于 2022-5-21 16:41
宁静现在玩H5 我还不会,最近才捡起来播放器,慢慢来了

曾经喊我也学H5,我没耐心学,哈哈

一抹微蓝 发表于 2022-5-21 16:46

好听好看,播放器制作超好

撒哈拉的雨 发表于 2022-5-21 16:47

蜻蜓 发表于 2022-5-21 16:45
曾经喊我也学H5,我没耐心学,哈哈

玩H5也是辛苦的

撒哈拉的雨 发表于 2022-5-21 16:47

一抹微蓝 发表于 2022-5-21 16:46
好听好看,播放器制作超好

谢谢欣赏{:10_402:}

蜻蜓 发表于 2022-5-21 16:50

撒哈拉的雨 发表于 2022-5-21 16:47
玩H5也是辛苦的

太复杂了,得有时间才行

撒哈拉的雨 发表于 2022-5-21 16:52

蜻蜓 发表于 2022-5-21 16:50
太复杂了,得有时间才行

主要动脑子辛苦

蜻蜓 发表于 2022-5-21 16:52

撒哈拉的雨 发表于 2022-5-21 16:52
主要动脑子辛苦

我放弃,不学了,哈哈

撒哈拉的雨 发表于 2022-5-21 16:56

蜻蜓 发表于 2022-5-21 16:52
我放弃,不学了,哈哈

看起来我后面的路也是艰辛的{:9007:}

蜻蜓 发表于 2022-5-21 17:00

撒哈拉的雨 发表于 2022-5-21 16:56
看起来我后面的路也是艰辛的

哈哈,你聪明,我笨
页: 1 [2] 3 4
查看完整版本: 关不上的窗