小辣椒 发表于 2023-6-14 21:25

爱不怕让你知道 TO:走过岁月(学习黑黑外婆桥播放器效果)

</span></div>
<div class="cont" style="padding:120px 30px;font-size:14pt;">

<css-doodle grid="1x5" id="mplayer">:doodle {@size: 1281px 760px;left: -360px;background: url('https://wj.zp68.com/lxx/yunhua/2023/06/14/GIF.gif ');box-shadow: 0 0 8px #000;position: relative;margin: 30px auto;--geci: 'HUACHAO';--motion: cover2;--ww: 200px;--prog: 0;--tt: 1s;--tt1: '00:00';--tt2: '00:00';--xplace: 85%;--yplace: 82%;--color: Green;--state: paused;}@nth(1) {@size: auto 3em;@place: 30% 15%;transform: translate(-50%);display: grid;place-items: center start;:before, :after {content: var(--geci);width: fit-content;height: fit-content;font: bold 2em Sans-serif;color: #ccc;text-shadow: 1px 1px 2px #000;white-space: pre;}:after {position: absolute;white-space: pre;width: 0;color: Green;overflow: hidden;animation: var(--motion) var(--tt) linear forwards var(--state);}}@nth(2) {@size: var(--ww) 2px;@place: var(--xplace) var(--yplace);background: silver;:before, :after { content: ''; }:before {position: absolute;left: 0;width: var(--prog);height: 100%;background: var(--color);}:after {width: 100%;height: 10px;cursor: pointer;}}@nth(3) {@size: 60px;@place: var(--xplace) calc(var(--yplace) - 36px);cursor: pointer;animation: rot 6s infinite linear var(--state);:after {content: '';@size: inherit;@shape: clover 4;background: var(--color);}}@nth(4) {@size: var(--ww) 20px;@place: var(--xplace) calc(var(--yplace) - 20px);:before, :after{position: absolute;width: 100%;height: 100%;color: var(--color);}:before { content: var(--tt1); }:after { content: var(--tt2); text-align: right; }}@nth(5) {@size: 32px 32px;@place: 50px 44px;background: url('https://wj.zp68.com/lxx/yunhua/2023/06/14/xin.jpg');offset-path: path('M100 100 Q510 200 924 100');offset-distance: 0%;animation: fly 40s infinite alternate var(--state);}@keyframes cover1 { from { width: 0; } to { width: 100%; } }@keyframes cover2 { from { width: 0; } to { width: 100%; } }@keyframes rot { to { transform: rotate(360deg); } }@keyframes fly { to { offset-distance: 100%; }}</css-doodle><audio id="aud" src="https://wj.zp68.com/lxx/yunhua/2023/06/14/abpanzd.mp3" autoplay="autoplay" loop="loop"></audio><script>(function(){
        let script = document.createElement('script');
        script.src = 'https://wj.zp68.com/lxx/yunhua/2023/06/14/css-doodle.js';
        document.head.appendChild(script);
        let mKey = 0, mFlag = true, slip = 0.6;
        let lrcAr = [
                ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
        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;};
        let mState = () => mplayer.style.setProperty('--state', aud.paused ? 'paused' : 'running');
        let showLrc = (time) => {mplayer.style.setProperty('--motion', mFlag ? 'cover1' : 'cover2');mplayer.style.setProperty('--geci', '"' + lrcAr + '"');mplayer.style.setProperty('--tt', time + 's');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);};
        aud.addEventListener('timeupdate', () => {for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime - slip >= lrcAr) {cKey = j;if (mKey === j) showLrc(lrcAr);else continue;}}mplayer.style.setProperty('--prog', 100*aud.currentTime/aud.duration + '%');mplayer.style.setProperty('--tt1', `'${toMin(aud.currentTime)}'`);mplayer.style.setProperty('--tt2', `'${toMin(aud.duration)}'`);});
        aud.addEventListener('play', mState, false);
        aud.addEventListener('pause', mState, false);
        aud.addEventListener('seeked', () => calcKey());
        window.onload = () => {
                let btns = mplayer.shadowRoot.querySelectorAll('cell');
                let ww = parseInt(window.getComputedStyle(mplayer).getPropertyValue('--ww'));
                btns.onclick = (e) => aud.currentTime = e.offsetX * aud.duration / ww;
                btns.onclick = () => aud.paused ? aud.play() : aud.pause();
        }
})();</script>

小辣椒 发表于 2023-6-14 21:26

@走过岁月

小辣椒 发表于 2023-6-14 21:27

岁月好久没有上来了,今天上来突然发现你也是好久没有来了,发个帖暧昧一下{:4_170:}

小辣椒 发表于 2023-6-14 21:27

呼叫岁月{:4_208:}

小辣椒 发表于 2023-6-14 21:27

一首非常喜欢的老歌,送给你{:4_179:}

小辣椒 发表于 2023-6-14 21:30

学习套用黑黑的外婆桥播放器效果@马黑黑

走过岁月 发表于 2023-6-14 21:33

小辣椒 发表于 2023-6-14 21:27
呼叫岁月

来了

走过岁月 发表于 2023-6-14 21:34

小辣椒 发表于 2023-6-14 21:27
一首非常喜欢的老歌,送给你

喜欢 {:4_179:}

走过岁月 发表于 2023-6-14 21:35

不怕,爱就要大胆说出来

走过岁月 发表于 2023-6-14 21:36

双频谱加粒子,小辣椒做的好棒

岩新新 发表于 2023-6-14 21:37

欣赏问好!

走过岁月 发表于 2023-6-14 21:38

小辣椒,这帅哥放在右边,让美女对着他说爱不怕让你知道

走过岁月 发表于 2023-6-14 21:39

星光点缀的也很美

走过岁月 发表于 2023-6-14 21:39

谢谢小辣椒的礼物,好开心

小辣椒 发表于 2023-6-14 21:41

走过岁月 发表于 2023-6-14 21:33
来了

岁月晚上好{:4_187:}

小辣椒 发表于 2023-6-14 21:42

走过岁月 发表于 2023-6-14 21:34
喜欢

我也是喜欢这首歌,我们都喜欢太好了{:4_189:}

小辣椒 发表于 2023-6-14 21:43

走过岁月 发表于 2023-6-14 21:35
不怕,爱就要大胆说出来

向岁月学习。爱就大胆的说出来{:4_179:}

小辣椒 发表于 2023-6-14 21:43

走过岁月 发表于 2023-6-14 21:36
双频谱加粒子,小辣椒做的好棒

这个是岁月的功劳,你做的粒子喜欢漂亮

走过岁月 发表于 2023-6-14 21:44

小辣椒 发表于 2023-6-14 21:41
岁月晚上好

晚上好

走过岁月 发表于 2023-6-14 21:44

小辣椒 发表于 2023-6-14 21:42
我也是喜欢这首歌,我们都喜欢太好了

页: [1] 2
查看完整版本: 爱不怕让你知道 TO:走过岁月(学习黑黑外婆桥播放器效果)