亚伦影音工作室 发表于 2026-8-19 11:03

叫你一声My Love[七夕快乐]

本帖最后由 亚伦影音工作室 于 2026-8-19 15:50 编辑 <br /><br /><style >
#papa {margin: 10px -420px;
        width: 1468px;
        height: 740px;
background:#000000 url('https://pic1.imgdb.cn/i/7NPy3POmEzF6MZFLOF9AnA.gif')no-repeat center / cover;
box-shadow: 0px 0px 0px 2px #cccccc, 0px 0px 0px 8px #880000;
        position: relative;overflow: hidden;--state: paused;
        z-index: 12345;       
}
#vid1 {z-index:1;
      position: absolute;
      width: 100%;
      height: 100%;
top: 0px;
left: 0;
      object-fit: cover;
   
}

#vid {z-index:2;
      position: absolute;
      width: 550px;
      height: 550px;
top: 50px;
left: 100px;
      object-fit: cover;
   
}

#vid2 {z-index:2;
      position: absolute;
      width: 600px;
      height: 600px;
top: 0px;
left: -80px;
      object-fit: cover;
   
}

#box {width: 700px;position: absolute;top: -160px;left: 170px;z-index: 3;background:#000000 url(https://pic.3gbizhi.com/uploadmark/20240912/c64ea5883f19ad35de0ffce279b5eb8c.webp)no-repeat center / cover;
        height: 700px;-webkit-mask: url(https://pic1.imgdb.cn/i/0349AhTcjJUEPzjgEvOSWp.png)no-repeat center/80% 80%;animation: round 6s linear infinite var(--state);}

@keyframes round {

0% {
-webkit-transform-origin:right bottom;
-webkit-transform:rotate(0deg)scale(1)translate(0%,0%)rotateY(20deg)rotateX(-40deg);
opacity:1}
50% {
-webkit-transform-origin:right bottom;
-webkit-transform:rotate(0deg)scale(1)translate(0%,0%)rotateY(-20deg)rotateX(40deg);
opacity:1}
100%{
-webkit-transform-origin:right bottom;
-webkit-transform:rotate(0)scale(1)translate(0%,0%)rotateY(20deg)rotateX(-40deg);
opacity:1}

}
#bo {width: 250px;position: absolute;top: 65%;left:70px;transform: rotate(0deg); z-index: 20;background:#000000 url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/274c57655969e3b75d5e9a0339005ea3.jpg)no-repeat center / cover;cursor: pointer;-webkit-mask: url(https://pic1.imgdb.cn/i/0349FoxsgAh0tPLiASKfs5.png)no-repeat center / cover;animation: rou 12s linear infinite var(--state);
        height: 250px; }
#wz{font:normal 2em 华文新魏;position: absolute;top: 15%;left:55px;width: 250px; }
@keyframes rou {
0% {transform:rotate(360deg)scale(1)translate(0%,0%);
opacity:1}
50% {transform:rotate(0deg)scale(1)translate(0%,0%);
opacity:1}
100% {transform:rotate(-360deg)scale(1)translate(0%,0%);
opacity:1}

}

#lrc {
      --state: paused;
      --motion: cover2;
      --tt: 2s;
      --bg:linear-gradient(to right, #000078, #ff0000,#00aa00);
      position: absolute;z-index: 26;
      left: 52%;
      transform: translate(-50%);
      top: 85%;
      font:normal 3.8em 华文新魏;
      
      color: #000080;
      white-space: pre;
      -webkit-background-clip: text;
      filter:drop-shadow(#FFFFFF 1px 0 0)drop-shadow(#FFFFFF 0 1px 0)drop-shadow(#FFFFFF -1px 0 0) drop-shadow(#FFFFFF 0 -1px0);
}
#lrc::before {
      position: absolute;
      content: attr(data-lrc);
      width: 20%;
      height: 100%;
      color: transparent;
      overflow: hidden;
      white-space: pre;
      background: var(--bg);
      
      -webkit-background-clip: text;
      animation: var(--motion) var(--tt) linear forwards;
      animation-play-state: var(--state);
}
@keyframes cover1{0% { width: 0%;}100% { width: 100%;}}
@keyframes cover2 { 0% { width: 0%;}100% { width: 100%;}}
</style >
<div id="papa">
<video id="vid1" src="https://img-baofun.zhhainiao.com/pcwallpaper_ugc/preview/e857c889215fb8c9957ae5245462eb61_preview.mp4" autoplay loop muted></video>
<div id="bo"><div id="wz">花潮论坛</div></div>
<div id="box"><video id="vid" src="https://img-baofun.zhhainiao.com/pcwallpaper_ugc/preview/90acb6d173f5d54ce0d8058a2c7953bc_preview.mp4" autoplay loop muted></video></div>
<div id="lrc" data-lrc="想你念你忘不掉"title="歌词显示">想你念你忘不掉</div>
<audio id="aud" src="https://www.qeecc.com/plug/down.php?ac=music&lk=mp3&id=Y2lzbnhnd2lz.mp3" autoplay loop></audio>
</div>
<script >
(function() {
/*原始lrc歌词*/
let lrcStr = `叫你一声My Love-雷鬼版
词: 陈乐融/曲: 李子恒
出品: 亚伦影音工作室
从前有个传说
传说里有你有我
我们在阳光海岸生活
从日出尽情的享受
每一刻 让世界为了希望在转动
有些梦不做不可
有些话一定要说
我的心你该知道很久
有一天我要大声宣布我的骄傲
那是我太在乎你的结果
叫你一声My Love
亲爱的是否你也关心着我
能不能叫你一声My Love
该不该把眼泪聚成弯弯的
小河流把爱情唱做歌
能不能叫你一声My Love
亲爱的是否你在思念着我
能不能叫你一声My Love
是不是不相信童话太美好的结果
不敢来找我
从前有个传说
传说里有你有我
我们在阳光海岸生活
从日出尽情的享受
每一刻 让世界为了希望在转动
有些梦不做不可
有些话一定要说
我的心你该知道很久
有一天我要大声宣布我的骄傲
那是我太在乎你的结果
叫你一声My Love
亲爱的是否你也关心着我
能不能叫你一声My Love
该不该把眼泪聚成弯弯的
小河流把爱情唱做歌
能不能叫你一声My Love
亲爱的是否你在思念着我
能不能叫你一声My Love
是不是不相信童话太美好的结果
不敢来找我
叫你一声My Love
亲爱的是否你也关心着我
能不能叫你一声My Love
该不该把眼泪聚成弯弯的
小河流把爱情唱做歌
能不能叫你一声My Love
亲爱的是否你在思念着我
能不能叫你一声My Love
是不是不相信童话太美好的结果
不敢来找我
`;

/*变量 :mKey - 当前歌词索引;mFlag :调用关键帧动画索引;averAdd :平均值补偿*/
let mKey = 0, mFlag = true, averAdd = 0.3;

/*函数 :获取每句歌词用时,歌词用时若超过平均值则取平均值,最后一句歌词则取平均值*/
let lrcTime = (ar) => {
      let tmpAr = [];
      for(j = 0; j <ar.length - 1; j ++) {
                if(j !== ar.length - 1) tmpAr = parseFloat((ar - ar).toFixed(1));
      }
      let aver = parseInt(tmpAr.reduce((a,b) => a + b) / (tmpAr.length - 1)) + averAdd;
      tmpAr.push(aver);
      tmpAr.forEach((item,key) => {
                ar = item > aver ? aver : item;
      });
      return ar;
};
function randomColor(){
    const colors = ['#880000','#ff0000','#00C851','#000078','#aa66cc','#ff8800','#ff33cc'];
    return colors;
}


/*函数 :从原始lrc歌词获取信息并存入 n*3 数组*/
let getLrcAr = (text) => {
      let lrcAr = [];
      let calcRule = ;
      for(x of text.split('\n')) {
                let ar = [];
                let re = /\d+[\.:]\d+([\.:]\d+)?/g;
                let geci = x.replace(re,'');
                if(geci) {
                        geci = geci.replace(/[\[\]\'\"\t,]s?/g,'');
                        let time = x.match(re);
                        if(time != null) {
                              for(y of time) {
                                        let tmp = y.match(/\d+/g);
                                        let sec = 0;
                                        for(z in tmp) sec += tmp * calcRule;
                                        ar = ;
                                        lrcAr.push(ar);
                              }
                        }
                }
      }
      lrcAr.sort((a,b)=> a - b);
      return(lrcTime(lrcAr));
};

/*函数 :模拟显示同步歌词*/
let showLrc = (time) => {
      let name = mFlag ? 'cover1' : 'cover2';
      lrc.innerHTML = lrcAr;
      lrc.dataset.lrc = lrcAr;
      lrc.style.setProperty('--motion', name);
      lrc.style.setProperty('--tt', time + 's');
      lrc.style.setProperty('--state', 'running');
lrc.style.color = randomColor();
      mKey += 1;
      mFlag = !mFlag;
};

/*函数 :处理当前歌词索引 mKey*/
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 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 = () => aud.paused ? (lrc.style.setProperty('--state','paused'),box.style.animationPlayState = 'paused') : (lrc.style.setProperty('--state','running'),box.style.animationPlayState = 'running');

/*监听播放进度*/
aud.addEventListener('timeupdate', () => {
      for (j = 0; j < lrcAr.length; j++) {
                if (aud.currentTime >= lrcAr) {
                        cKey = j;
                        if (mKey === j) showLrc(lrcAr);
                        else continue;
                }
      }
});
aud.addEventListener('pause', () => mState());/*监听暂停事件*/
aud.addEventListener('play', () => mState());/*监听播放事件*/
aud.addEventListener('seeked', () => calcKey());/*监听查询事件*/
let lrcAr = getLrcAr(lrcStr); /*获得歌词数组*/
})();
</script>
<script>





      (function() {
      var mState = () => {papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
       aud.paused ? (vid.pause(),vid1.pause()): (vid.play(),vid1.play());
};
      
aud.onplaying = aud.onpause = () => mState();
bo.onclick = () => aud.paused ? aud.play(): aud.pause();

})();

</script>

梦油 发表于 2026-8-19 14:18

亚伦制作无与伦比!
祝亚伦七夕快乐!

小辣椒 发表于 2026-8-19 21:50

欣赏亚纶精彩的制作{:4_199:}
页: [1]
查看完整版本: 叫你一声My Love[七夕快乐]