冬天的雨 发表于 2022-11-14 20:33

又见老情人-TO:红影

<style>
#papa { margin: 90px 0 0 calc(50% - 686px); display: grid; place-items: center; width: 1200px; height: 750px;   position: relative; z-index: 1; }
#mplayer { position: absolute; top: 525px;right: 36px; z-index: 1; }
#btnwrap { display: block; fill: hsla(30, 20%, 80%, .9); cursor: pointer; }
#btnwrap:hover { fill: hsla(90, 100%, 100%, .9); }
#tmsg { fill: hsla(30, 100%, 90%, .9); stroke: none; font: bold 1em sans-serif; }
#lrc { --motion: cover1; --tt: 5s; --state: paused; position: absolute; top: 120px; left: 330px; font: bold 2.4em sans-serif; color: hsl(240,50%,90%); -webkit-background-clip: text; filter: drop-shadow(1px 1px 1px hsla(30,10%,10%,.95)); }
#lrc::before { position: absolute; content: attr(data-lrc); width: 20%; height: 100%; color: transparent; overflow: hidden; white-space: nowrap; background: linear-gradient(180deg,hsla(120,90%,50%,.45),hsla(120,90%,60%,.75)); filter: inherit; -webkit-background-clip: text; animation: var(--motion) var(--tt) linear forwards; animation-play-state: var(--state); }

#papa > span { position: absolute; right: 160px; opacity: .75; color: olive; font: bold 3em serif; display: grid; place-items: center; }
@keyframes cover1 { from { width: 0; } to { width: 100%; } }
@keyframes cover2 { from { width: 0; } to { width: 100%; } }
</style>

<div id="papa"><img src=" " alt="" style="position: absolute; left:-250; top: -10; mix-blend-mode: screen;" />

        <svg id="mplayer" width="120" height="120">
                <g id="mama" transform="rotate(-90, 60, 60)" style="cursor: pointer;">
                        <circle id="track" cx="60" cy="60" r="50" fill="none" stroke-width="10" stroke="hsla(100, 20%, 80%, .65)" />
                        <circle id="prog" cx="60" cy="60" r="50" fill="none" stroke-width="10" stroke="hsla(100,50%,50%,.55)" />
                </g>
                <g id="btnwrap">
                        <path id="btnplay" d="M 50 50,50 70,70, 60 z"></path>
                        <path id="btnpause" d="M 52 50,52 70,57 70,57 50,52 50 z M 60 50,60 70,65 70,65 50,60 50 z" style="display: none;"></path>
                        <path d="M 57 50,60 50,60 70,57 70 z" fill="transparent" />
                </g>
                <path id="curPath" d="M 20 70 Q 60 0 100 70" fill="none" stroke="none"/>
                <path id="durPath" d="M 20 55 Q 60 110 100 55" fill="none" stroke="none"/>
                <g id="tmsg">
                        <text x="34" y="0"><textPath id="curMsg" xlink:href="#curPath" dominant-baseline="text-after-edge">00:00</textPath></text>
                        <text x="29" y="0"><textPath id="durMsg" xlink:href="#durPath" dominant-baseline="text-before-edge">00:00</textPath></text>
                </g>
        </svg>
<div style="z-index: !;width: 1200px; height: 660px; top:120px; left:0px;   overflow: hidden;transform:rotate(0deg);background-size: 100% 100%;background-image:url(); text-align: center;"><metaname="referrer" content="never"><video frameborder="0" src="http://img.tukuppt.com/video_show/2418175/00/02/04/5b5085d637d83.mp4" autoplay muted loop="" controls="" style="position:absolute;left:-212px;top:-166px;background:#000 ;width:1600px; height: 1000px;> <div style="color:#f88;font-size:2.5em;margin-left:560px;top:20px;"></div><img class=&lazyload bg-gif" src="https://pan.365.tf/uploads/lxx/20221112/6niao.gif" data-original="https://pan.365.tf/uploads/lxx/20221112/6niao.gif" title="" alt="" style="z-index: 1;LEFT:-424px;POSITION: relative; TOP: -626px;height: 200px; margin: 0px;border-radius:3%background-color: rgb(255, 255, 255); display: block;">"

<div id="lrc" data-lrc="花潮论坛lrc在线">花潮论坛lrc在线</div></div><audio id="aud" src="https://wj.zp68.com/lxx/yy/yjhqr.mp3" loop autoplay></audio>
<script>
(function() {
        (function() {let total = 0, rr = 150;Array.from({length: total}).forEach((item,key) => {item = document.createElement('span');item.innerText = String.fromCharCode(9800+key);item.style.transform = `rotate(${0 / total * key}deg) translateY(${rr}px) rotate(-${360 / total * key}deg`;papa.appendChild(item);});})();
        let mKey = 0, mFlag = true, cc = { x: 1*track.getAttribute('cx'), y: 1*track.getAttribute('cy'), len: track.getTotalLength(),};
        let lrcAr = [
                ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ];
        prog.style.strokeDasharray = prog.style.strokeDashoffset =cc.len;
        btnwrap.onclick = () => aud.paused ? aud.play() : aud.pause();
        mama.onclick = (e) => {let deg = Math.atan2(e.offsetY - cc.y, e.offsetX - cc.x) * 180 / Math.PI;deg += (e.offsetX < cc.x && e.offsetY < cc.y) ? 450 : 90;aud.currentTime = aud.duration * deg / 360;};
        aud.addEventListener('pause', () => mState());
        aud.addEventListener('play', () => mState());
        aud.addEventListener('seeked', () => calcKey());
        aud.addEventListener('timeupdate', () => {prog.style.strokeDashoffset = cc.len - cc.len * aud.currentTime / aud.duration;curMsg.textContent = toMin(aud.currentTime);durMsg.textContent = toMin(aud.duration);for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime >= lrcAr) {if (mKey === j) showLrc(lrcAr);else continue;}}});
        let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = lrcAr;lrc.dataset.lrc = lrcAr.replace(/<br>/,'\n');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 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 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;};
        papa.oncontextmenu = () => false;
})();
</script>

冬天的雨 发表于 2022-11-14 20:34

@红影

冬天的雨 发表于 2022-11-14 20:35

没时间做歌词同步,上次的歌词继续用{:4_170:}

冬天的雨 发表于 2022-11-14 20:36

测试一下视频背景,美女看看效果怎么样

小辣椒 发表于 2022-11-14 20:37

沙发留给红影

小辣椒门口先欣赏一下等门开{:4_189:}

冬天的雨 发表于 2022-11-14 20:39

小辣椒 发表于 2022-11-14 20:37
沙发留给红影

小辣椒门口先欣赏一下等门开

小辣椒在门口?{:4_170:}

小辣椒 发表于 2022-11-14 20:40

冬天的雨 发表于 2022-11-14 20:39
小辣椒在门口?

不过已经听到歌声了

小辣椒 发表于 2022-11-14 20:41

@红影

亲爱的,收礼开心

马黑黑 发表于 2022-11-14 20:41

刚讨论到初恋,老情人就到了{:4_170:}

冬天的雨 发表于 2022-11-14 20:41

小辣椒 发表于 2022-11-14 20:41
@红影

亲爱的,收礼开心

视频可以看见吗

小辣椒 发表于 2022-11-14 20:42

冬天的雨 发表于 2022-11-14 20:41
视频可以看见吗

看见啊,蓝天白云

冬天的雨 发表于 2022-11-14 20:43

这个链接我怕你看不见,看见就好

小辣椒 发表于 2022-11-14 20:44

冬天的雨 发表于 2022-11-14 20:43
这个链接我怕你看不见,看见就好

好听,又见老情人{:4_170:}

冬天的雨 发表于 2022-11-14 20:46

马黑黑 发表于 2022-11-14 20:41
刚讨论到初恋,老情人就到了

马老师好{:4_187:}

怀念初恋了{:4_170:}

冬天的雨 发表于 2022-11-14 20:47

小辣椒 发表于 2022-11-14 20:44
好听,又见老情人

没有时间做歌词同步,测试视频就用以前的

小辣椒 发表于 2022-11-14 20:51

冬天的雨 发表于 2022-11-14 20:47
没有时间做歌词同步,测试视频就用以前的

很好,这个背景很清晰,歌词也是清晰{:4_199:}

马黑黑 发表于 2022-11-14 20:52

冬天的雨 发表于 2022-11-14 20:46
马老师好

怀念初恋了

{:4_190:}

冬天的雨 发表于 2022-11-14 20:56

马黑黑 发表于 2022-11-14 20:52


{:4_180:}

千羽 发表于 2022-11-14 21:01

冬雨又出现了{:4_187:}

红影 发表于 2022-11-14 21:02

好漂亮的蓝天白云,谢谢冬小雨的礼物{:4_187:}
页: [1] 2 3 4 5
查看完整版本: 又见老情人-TO:红影