花飞飞 发表于 2023-7-17 22:29

惊鸿一面(学习黑师《烟花落尽》频谱效果)

<style>
    #mydiv { margin: 0 0 0 calc(50% - 740px); width: 1300px; height: 700px;
    background: url('https://s1.ax1x.com/2023/07/17/pCocmZV.jpg') no-repeat center/cover;
    box-shadow: 0 0 8px 0 #000;overflow: hidden; z-index: 1; position: relative; --state: paused; }
    #lrc { position: absolute; top: 20px; left: 50%; transform: translate(-50%); font: bold 2.4em sans-serif; color: hsl(0,10%,90%); -webkit-background-clip: text; filter: drop-shadow(1px 1px 2px hsla(0,0%,0%,.95)); --motion: cover2; --tt: 5s; }
    #lrc::before { position: absolute; content: attr(data-lrc); width: 20%; height: 100%; color: transparent; overflow: hidden; white-space: nowrap; background: linear-gradient(180deg,hsla(60,100%,50%,.45),hsla(0,100%,50%,.75)); filter: inherit; -webkit-background-clip: text; animation: var(--motion) var(--tt) linear forwards var(--state); }
    pinpu-wrapper { position: absolute; bottom: 0; left: 75%; transform: translate(-50%); cursor: pointer; z-index: 99;}
    pin-pu { position: absolute; bottom: 0; animation: pinpuMotion var(--du) var(--delay) infinite alternate linear var(--state);}
    .mybox { position: absolute; bottom: -100px; left: calc(70% - 25px); font-size: 50px; animation: up 8s var(--delay) infinite linear var(--state); --delay: 0s; --deg: -45deg; opacity: .60;}
    .mybox:nth-of-type(2) { --delay: -2s; --deg: -45deg; }
    .mybox:nth-of-type(3) { --delay: -4s; --deg: -45deg; }
    .mybox:nth-of-type(4) { --delay: -6s; --deg: -45deg; }
    @keyframes pinpuMotion { from { height: 0px; } to { height: var(--height); } }
    @keyframes up { to { transform: rotate(var(--deg)) translateY(-650px); } }
    @keyframes cover1 { from { width: 0; } to { width: 100%; } }
    @keyframes cover2 { from { width: 0; } to { width: 100%; } }
    </style>

    <div id="mydiv">
            <span class="mybox"><img src=https://www.emojiall.com/images/240/telegram/2728.gif></span>
            <span class="mybox"><img src=https://www.emojiall.com/images/240/telegram/2728.gif></span>
            <span class="mybox"><img src=https://www.emojiall.com/images/240/telegram/2728.gif></span>
      <span class="mybox"><img src=https://www.emojiall.com/images/240/telegram/2728.gif></span>
            <pinpu-wrapper></pinpu-wrapper>
            <div id="lrc"data-lrc="花潮lrc在线">花潮lrc在线</div>
<css-doodle>:doodle { @grid: 8x8 / 1300px 768px; } :container {perspective: 1000px;transform-style: preserve-3d;}@place-cell: center;left:370px;top:300px;@random {width: @rand(1, 60)vmin;height: @rand(1, 30)vmin;border-radius: 50%;border: 2px dashed Tomato;transform-style: preserve-3d;will-change: transform, opacity;animation: rotate 10s infinite -@rand(30)s linear alternate var(--state);transform-origin: center center;}
@keyframes rotate {0% {transform: translate3d(0, 0, 0) rotate(0);opacity: 0;}5% {opacity: 1;}70% {transform:translate3d(0, 0, 20vmin)rotateX(calc(@p(-2, 2) * @r(15deg, 165deg)))rotateY(calc(@p(-2, 2) * @r(15deg, 165deg)))rotateZ(calc(@p(-2, 2) * @r(15deg, 165deg)))}100% {transform: translate3d(1, 0, 1) rotate(0);opacity: 0;}}
</css-doodle>
    </div>
    <audio id="aud"src="https://music.163.com/song/media/outer/url?id=1939754622" autoplay loop></audio>

    <script>

    ~function() {
    let script = document.createElement('script');
        script.src = 'https://unpkg.com/css-doodle@0.34.9/css-doodle.min.js'; //’’'http://mahei.freeee.ml/api/css-doodle.js';
        document.head.appendChild(script);
            let pinpuNum = 60, pinpuWidth = 4, pinpuHeight = 160, mKey = 0, mFlag = true, slip = 0.2;
            let ppwrap = document.querySelector('pinpu-wrapper');
         let lrcAr = [
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
            let mState = () => aud.paused ? (mydiv.style.setProperty('--state','paused'), lrc.style.setProperty('--state','paused')) : (mydiv.style.setProperty('--state','running'), lrc.style.setProperty('--state','running'));
            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 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 msort = (ar) => {let newAr = [];ar.forEach((v,k) => k % 2 === 0 ? newAr.unshift(v) : newAr.push(v));return newAr;}
            ~function() {let ar = Array.from(Array(pinpuNum), (v,k) => pinpuNum - k -1);Array.from({length: pinpuNum}).forEach((item,key) => {item = document.createElement('pin-pu');item.style.cssText += `width: ${pinpuWidth}px;left: ${(pinpuWidth + 2) * key}px;background: #${Math.random().toString(16).substr(-6)};--height: ${15 + (pinpuHeight - 15) / pinpuNum * msort(ar)}px;--du: ${Math.random() * .3 + .3}s;--delay: -${Math.random()}s;`;ppwrap.appendChild(item);});ppwrap.style.height = `${pinpuHeight}px`;ppwrap.style.width = `${(pinpuWidth + 2) * pinpuNum}px`;}();
            aud.addEventListener('play', mState, false);
            aud.addEventListener('pause', mState, false);
            aud.addEventListener('seeked', calcKey, false);
            aud.addEventListener('timeupdate', () => {
            for (j = 0; j < lrcAr.length; j++) {if (aud.currentTime >= lrcAr + slip) {cKey = j;if (mKey === j) showLrc(lrcAr);else continue;}}});
            ppwrap.onclick = () => aud.paused ? aud.play() : aud.pause();
    }();

    </script>

马黑黑 发表于 2023-7-17 22:31

歌词很特别,听了几遍

这姑凉练的是啥功,弱弱问下{:4_170:}

花飞飞 发表于 2023-7-17 22:32

@马黑黑 给最好的老师上茶{:4_190:}{:4_195:}

马黑黑 发表于 2023-7-17 22:33

花飞飞 发表于 2023-7-17 22:32
@马黑黑 给最好的老师上茶

谢茶

花飞飞 发表于 2023-7-17 22:33

马黑黑 发表于 2023-7-17 22:31
歌词很特别,听了几遍

这姑凉练的是啥功,弱弱问下

看着跳舞想到黄龄软嗓音,冲着她找的歌。。。
原版不让链,这版听起来也不错。。。。{:4_170:}

花飞飞 发表于 2023-7-17 22:35

马黑黑 发表于 2023-7-17 22:31
歌词很特别,听了几遍

这姑凉练的是啥功,弱弱问下

是传说中的瑜伽{:4_170:}据说她的教练只管教不管示范

马黑黑 发表于 2023-7-17 22:36

花飞飞 发表于 2023-7-17 22:35
是传说中的瑜伽据说她的教练只管教不管示范

伟大的教练

马黑黑 发表于 2023-7-17 22:37

花飞飞 发表于 2023-7-17 22:33
看着跳舞想到黄龄软嗓音,冲着她找的歌。。。
原版不让链,这版听起来也不错。。。。

是的,不一样的味道

花飞飞 发表于 2023-7-17 22:37

马黑黑 发表于 2023-7-17 22:33
谢茶

晚上不能喝茶。。{:4_170:}

马黑黑 发表于 2023-7-17 22:38

花飞飞 发表于 2023-7-17 22:37
晚上不能喝茶。。

我不论的

花飞飞 发表于 2023-7-17 22:41

马黑黑 发表于 2023-7-17 22:36
伟大的教练

世界顶级的教练{:4_170:}都这样

花飞飞 发表于 2023-7-17 22:41

马黑黑 发表于 2023-7-17 22:37
是的,不一样的味道

挺好听的,不吵。。{:4_170:}

花飞飞 发表于 2023-7-17 22:42

马黑黑 发表于 2023-7-17 22:38
我不论的

可以不论好,有口福。。。

马黑黑 发表于 2023-7-17 22:43

花飞飞 发表于 2023-7-17 22:42
可以不论好,有口福。。。

那是自然

马黑黑 发表于 2023-7-17 22:43

花飞飞 发表于 2023-7-17 22:41
挺好听的,不吵。。

是的

马黑黑 发表于 2023-7-17 22:44

花飞飞 发表于 2023-7-17 22:41
世界顶级的教练都这样

对,尾大不掉{:4_170:}

花飞飞 发表于 2023-7-17 22:44

马黑黑 发表于 2023-7-17 22:43
那是自然

星星眼羡慕一下。。。{:4_170:}

花飞飞 发表于 2023-7-17 22:45

马黑黑 发表于 2023-7-17 22:43
是的

我小站里的为啥就能显示。。。。

花飞飞 发表于 2023-7-17 22:47

马黑黑 发表于 2023-7-17 22:44
对,尾大不掉

不听指挥可还行。。。此伟大非彼尾大。

醉美水芙蓉 发表于 2023-7-17 22:57

页: [1] 2 3 4 5 6
查看完整版本: 惊鸿一面(学习黑师《烟花落尽》频谱效果)