撒哈拉的雨 发表于 2023-11-11 14:03

《尘缘》 TO:千羽

本帖最后由 撒哈拉的雨 于 2023-11-11 14:04 编辑 <br /><br /><style>
#ywqs { left: -340px; width: 1280px; height: 700px;top:150px; font-size: 14px; background: url('https://pic.imgdb.cn/item/654f13aac458853aefdc671b.jpg') 0 0/100% 100%;display: grid;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://pic.imgdb.cn/item/654f13b5c458853aefdc89d9.jpg)0 0/100% 100%;}
.back.face {display: block; -webkit-transform: rotateY(180deg); transform: rotateY(180deg); box-sizing: border-box;background:url(https://pic.imgdb.cn/item/654f13b5c458853aefdc89d9.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://pic.imgdb.cn/item/654f13b0c458853aefdc79fd.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://i.mp3.wf/view.php/04b6f9bd6fed6e36d754dafae3401022.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(''); left: 454px; top: 100px; width:250px; height: 250px; 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><br><br><br><br><br><br><br><br><br>



撒哈拉的雨 发表于 2023-11-11 14:06

不玩很久了,都不会做了,原来是千羽也是在这里,问候一下
@千羽

撒哈拉的雨 发表于 2023-11-11 14:08

发帖都忘记了{:4_203:}

小辣椒 发表于 2023-11-11 15:20

撒哈拉的雨 发表于 2023-11-11 14:08
发帖都忘记了

大哥好,发几次就会了{:4_173:}

小辣椒 发表于 2023-11-11 15:20

漂亮的美女,灵动的画面,代码帖做的漂亮{:4_199:}

小辣椒 发表于 2023-11-11 15:21

歌曲也是好听,大哥好分享{:4_187:}

小辣椒 发表于 2023-11-11 15:21

@千羽
收礼开心

亦是金 发表于 2023-11-11 19:06

问好撒哈拉的雨!帖子制作漂亮!欣赏学习了!{:4_190:}

千羽 发表于 2023-11-11 19:21

上来就看见有撒雨老师的礼物,好高兴{:4_187:}

千羽 发表于 2023-11-11 19:23

撒雨老师有眼光啊,选的美女都很漂亮呢,{:4_187:}

千羽 发表于 2023-11-11 19:25

特效效果自然流畅,播放器也是美美哒{:4_187:}

千羽 发表于 2023-11-11 19:26

音乐也很好听,慢慢欣赏中……{:4_199:}{:4_178:}

千羽 发表于 2023-11-11 19:28

谢谢撒雨老师的精美礼物,祝冬日安好,开心快乐{:4_187:}

千羽 发表于 2023-11-11 19:29

小辣椒 发表于 2023-11-11 15:21
@千羽
收礼开心

谢谢小辣椒,一起开心快乐{:4_173:}

醉美水芙蓉 发表于 2023-11-11 20:29

小辣椒 发表于 2023-11-11 20:33

千羽 发表于 2023-11-11 19:29
谢谢小辣椒,一起开心快乐

千羽一起开心快乐{:4_171:}

冬天的雨 发表于 2023-11-12 15:48

千羽的礼物,冬雨占光欣赏{:4_187:}

冬天的雨 发表于 2023-11-12 15:49

问好撒雨,你的全部名我写太难了{:4_170:}

冬天的雨 发表于 2023-11-12 15:49

千羽写撒雨我也是写撒雨了{:4_170:}

冬天的雨 发表于 2023-11-12 15:50

这个是特效代码帖制作真漂亮,赞的{:4_178:}
页: [1] 2
查看完整版本: 《尘缘》 TO:千羽