小雨的心 发表于 2024-1-24 10:15:22

【小雨音画】我要的不是雪

<style>
#papa { margin: 0 0 0 calc(50% - 881px);
width: 1600px; height: 900px;
background: url('http://www.yhyhlt.com/data/attachment/forum/202401/24/101231ieaks1x9ecsbtktc.jpg') no-repeat center/cover;
box-shadow: 3px 3px 20px #000; overflow: hidden; display: grid; place-items: center; z-index: 1; position: relative; --state: running; }
#vid {
    position: absolute;
    width: 110%;
    height: 120%;
                top:-80px;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 2;
    opacity: .56;
}
</style>
<div id="papa"><video id="vid" src="https://img.tukuppt.com/video_show/2269348/00/14/92/5e67af3447155.mp4" autoplay="" loop="" muted=""></video></div>
<audio id="aud" src="http://music.163.com/song/media/outer/url?id=2107784661.mp3" autoplay="" loop=""></audio>
<script>
(function() {
let script = document.createElement('script');
    script.src = 'https://638183.freep.cn/638183/web/api/meter_pinpu_lrc.js';
    script.charset = 'utf-8';
    document.head.appendChild(script);

    let geci = [
    ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
window.onload = () => {
    HCPlayer({
      papa: '#papa',
      lrcAr: geci,
      lrc_css: `
            top: 20px;
            color: #299;
            --bg: linear-gradient(rgba(250,250,250,.25),rgba(0,255,255.65));
      `,
      player_css: `
            bottom: 2%;

            color: lightblue;
            z-index: 100;
            --track: darkgray;
            --prog:black;
      `,
      fs_css: `bottom: 30px;left:10px; background: transparent;--color: white;`,
      title: '余子林-我要的不是雪',
    });

    let mkClover = (ele,num) => {
      let r = ele.offsetWidth / 2, pathAr = [];
      for(let i = 0; i < 200; i ++) {
            let angle = i * 2 * Math.PI / 200;
            let x = r - r * Math.sin(num * angle) * Math.cos(angle);
            let y = r - r * Math.sin(num * angle) * Math.sin(angle);
            pathAr.push(x + 'px ' + y + 'px');
      }
      return 'polygon(' + pathAr.join(', ') + ')';
    }

    Array.from({length: 16}).forEach((item) => {
      let ww = 50 + Math.floor(Math.random() * 50);
      let ar = ;
      item = document.createElement('span');
      item.className = 'clover';
      item.style.cssText += `
            --deg: ${60 - Math.random() * 150}deg;
            --delay: ${Math.random() * 20 - 20}s;
            width: ${ww}px;
            height: ${ww}px;
            right: 200px;
      `;
      papa.appendChild(item);
      item.style.clipPath = mkClover(item, ar);
    });
};
})();

setInterval( () => { aud.paused ? vid.pause() : vid.play(); },100);
</script>

嫣雨 发表于 2024-1-24 14:53:21

好看又好听!!!

绿蔷薇 发表于 2024-1-26 14:59:48

在这个寒冷的冬天
有你 感到温暖
感谢遇见 一路相伴

绿蔷薇 发表于 2024-1-26 15:01:15

画面简洁、干净、漂亮,就像这雪天洁白无瑕~~

绿蔷薇 发表于 2024-1-26 15:01:47

问好小雨,新年快乐哈~~{:S06:}
页: [1]
查看完整版本: 【小雨音画】我要的不是雪