宁静 发表于 2024-1-30 14:26

云笛 发表于 2024-1-25 12:49
请问这幅音画作品是纯代码发的吗?制作得真是精美~~

云笛好,因为最近身体状况不是很好,回复来迟了


这个是纯代码的路径播放器,加了个动图,下面我给你复制代码你看看就明白了

宁静 发表于 2024-1-30 14:28

云笛 发表于 2024-1-25 12:49
请问这幅音画作品是纯代码发的吗?制作得真是精美~~


<style>
#papa { margin: 150px 0 0 calc(50% - 721px); width: 1280px; height: 607px; background: url('https://xlaj.cn/assets/file/zp/20231030141651.gif ') no-repeat center/cover; box-shadow: 4px 4px 8px #000; overflow: hidden; display: grid; place-items: center; z-index: 1; position: relative; --state: running; }
#sky { position: absolute; width: 1400px; height: 380px; top:350; left: 650; transform: rotate(30deg); }
#dt1{ position: absolute; width:1200px; height:500px; top: 120px; left: 30px; }
#dt2{ position: absolute; width:107px; height:87px; top: 320px; left: 350px; }
#dt3{ position: absolute; width:12px; height:20px; top: 370px; left: 170px; }
#dt4{ position: absolute; width:200px; height:180px; top: 80px; left: 50px; }

</style>
<div id="papa">
<img id="dt1" src="https://xlaj.cn/assets/file/zp/20231004105737.gif " alt="" />
<img id="dt2" src="https://xlaj.cn/assets/file/zp/20231030141735.gif " alt="" />
<img id="dt3" src="https://xlaj.cn/assets/file/zp/20231030141805.jpg " alt="" />
<img id="dt4" src="https://xlaj.cn/assets/file/zp/20231030142105.png" alt="" />

      <div id="sky"></div>
      <audio id="aud" src="https://xlaj.cn/assets/file/zp/20231030141835.mp3" autoplay loop></audio>
</div>

<script>

(function() {
       let lrcAr = [
        ,
               ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
        ,
       
];
               let js1 = 'https://xlaj.cn/assets/file/zp/20231029162717.js ',
                js2 = 'https://638183.freep.cn/638183/web/lizi/h5lz_2d.js';
      let loadJs = (url,callback) => {
                let body = document.querySelector('body'), jsNode = document.createElement('script');
                jsNode.charset = 'utf-8';
                jsNode.setAttribute('src', url);
                body.appendChild(jsNode);
                jsNode.onload = () => callback();
      };
      loadJs(js1, () => {
                HCPlayer({
                        papa: '#papa',
                        lrcAr: lrcAr,

                     lrc_css: 'bottom: 20px; left: 35%;color:Honeydew; --bg: linear-gradient(rgba(100,149,2375,4),rgba(100,149,237,.17));',
               
                        fs_css: 'transform: translate(0px,40px); color: #F0FFF0; background: transparent; bottom: -250px;',
                  
                        player_css: 'width: 250px; height: 250px;left: 10px;top:320px; transform: translateY(-20px);',
                     path: 'm200.62628,85.24308c0.12325,1.69025 0.12325,3.38086 0.12325,5.07111c0,51.55474 -40.04122,110.95789 -113.22493,110.95789c-22.54653,0 -43.49116,-6.39937 -61.10948,-17.50676c3.20343,0.36198 6.28324,0.48277 9.60992,0.48277c18.60358,0 35.72927,-6.15743 49.40502,-16.66163c-17.49507,-0.36235 -32.15646,-11.5909 -37.20793,-27.04542c2.4643,0.36198 4.92821,0.60355 7.51576,0.60355c3.57281,0 7.14601,-0.48314 10.47231,-1.32789c-18.2342,-3.62243 -31.91033,-19.31816 -31.91033,-38.27396l0,-0.48277c5.29759,2.89772 11.45834,4.70875 17.9877,4.94995c-10.71882,-7.00293 -17.74119,-18.9558 -17.74119,-32.47852c0,-7.24412 1.97091,-13.8847 5.42085,-19.68014c19.58961,23.66456 49.03564,39.11872 82.05411,40.80933c-0.61588,-2.89772 -0.98564,-5.91586 -0.98564,-8.93437c0,-21.49155 17.74157,-38.9983 39.7951,-38.9983c11.45796,0 21.80702,4.70875 29.07628,12.31523c8.99366,-1.69025 17.61794,-4.95032 25.25696,-9.41751c-2.95731,9.05553 -9.24054,16.66201 -17.49507,21.49117c8.0084,-0.84475 15.77029,-3.01851 22.91591,-6.03665c-5.42009,7.72689 -12.19671,14.60866 -19.95861,20.16291z',
                     btn: {left: 44, top: 130},
              track: {track: '#F0FFF0', prog: '#1072ba'},
                        img: {play: '', pause: ''}
                });
      });

      loadJs(js2, () => {
                H5lz({
                        papa: '#sky',
                        total: 15,
                        size: {width: 18, height: 34},
                        shape: {background: 'url("yezx.png") no-repeat center/cover', borderRadius: '0'},
                        ani: 'toBottom',
                        maxTime: 30,
                        offset: {x: 0, y: 0},
                });
      });
})();

</script>

楚心兰 发表于 2024-1-30 20:19

宁静 发表于 2024-1-30 14:21
心兰好,是好久没有碰到了,

是啊,今天可看到你了。

云笛 发表于 2024-1-30 23:14

要好好保重身体哦~祝你早日康复{:10_403:}

墨羽 发表于 2024-1-31 09:31

宁静 发表于 2024-1-30 14:22
问好老大,谢谢欣赏

宁静好呀,快过年了,置办年货哈!
页: 1 2 [3]
查看完整版本: 《天边》歌手:乌英嘎 / 云飞