亚伦影音工作室 发表于 2022-9-24 00:20

缘(中慢四 新做版本) - 高胜美

本帖最后由 亚伦影音工作室 于 2022-9-24 11:53 编辑 <br /><br /><style>

.photo img{width: 1024px;

height: 600px;

position: absolute;

top:0px; left:0px;filter:contrast(140%)brightness(100%);

opacity: 0;
background-size:100% 100%;
animation-name: round ;animation-duration: 32s;

               animation-iteration-count: infinite;

                animation-timing-function: linear;

}
@keyframes round{1% {opacity: 1;clip-path:polygon(50% 0%, 50% 25%, 50% 85%, 50% 100%, 50% 85%, 50% 25%);
-webkit-transform:translate(0%,0%)scale(1);}
3%{opacity: 1;clip-path:polygon(50% 0%, 50% 25%, 50% 85%, 50% 100%, 50% 85%, 50% 25%);
-webkit-transform:translate(0%,0%)scale(1);}
6% {opacity: 1;polygon(50% 0%, 100% 50%, 100% 50%, 50% 100%, 0 50%, 0 50%);
-webkit-transform:translate(0%,0%)scale(1);}
9% {opacity: 0.8;clip-path: polygon(50% 0%, 100% 0, 100% 100%, 50% 100%, 0 100%, 0 0);polygon(50% 0%, 100% 50%, 100% 50%, 50% 100%, 0 49%, 0 50%);-webkit-transform:translate(0%,0%)scale(1);}
20% {opacity: 0;clip-path:polygon(50% 0%, 100% 0, 100% 100%, 50% 100%, 0 100%, 0 0);-webkit-transform:translate(0%,0%)scale(2);}
}

.photo img:nth-child(1) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/f2a53a1e6e81b4cd7c41058d2ebd578d.jpg);

animation-delay: 28s;

}

.photo img:nth-child(2) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/0f74762ece0cfe2895dfdc0a4301ba9a.jpg);

animation-delay: 24s;

}

.photo img:nth-child(3) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/f33b03bf78ea6b69b25f54f084c39882.jpg);

animation-delay: 20s;

}

.photo img:nth-child(4) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/88d2a8247f642ba7dd7cfa209384a4db.jpg);

animation-delay: 16s;

}

.photo img:nth-child(5) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/5086f787b8d9a4e21c52441b9f2072af.jpg);

animation-delay: 12s;

}

.photo img:nth-child(6) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/859cfa39514bd871bf069df61f2259e8.jpg);

animation-delay: 8s;

}

.photo img:nth-child(7) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/b2477df1e9ace98a0fd72d00553397ca.jpg);

animation-delay: 4s;

}

.photo img:nth-child(8) {background-image:url(https://img-baofun.zhhainiao.com/pcwallpaper_ugc/static/73863e4fc17f4a92576556fd1989b62e.jpg);

animation-delay: 0s;

}
</style>



<style>

      #papa { left: 0px; width: 1024px; height: 600px;background:linear-gradient(50deg, #000080, #ff0000, #000000, #00f000);box-shadow: 3px 3px 20px #000; display: grid; place-items: center; position: relative; z-index: 1; }

      #mplayer { position: absolute; top:500px; width: 300px; height: 80px; user-select: none; display: grid; place-items: center; cursor: pointer; }

      #mplayer:hover #btnwrap, #mplayer:hover #prog { transform: translateY(var(--yy)); }

      #mplayer:hover #btnwrap { background: linear-gradient(180deg, #FD0000 25%,#FD0007 96%); border-radius: 50%; opacity: .75; }

      #btnwrap, #prog { position: absolute; display: grid; place-items: center;transition: .5s; }

      #btnwrap { --yy: 15px; width: 40px; height: 40px; transform: rotate(45deg);border-radius: 6px; opacity: .25; }

      #btnplay { width: 20px; height: 20px; background: #eee; clip-path: polygon(0 0, 0% 100%, 100% 50%); }

      #btnpause { width: 2px; height: 20px; border-style: solid; border-width: 0px 4px; border-color: transparent #eee; display: none; }

      #prog { --yy: 50px; width: 1024px; height: 1px; border-radius: 0px; background: linear-gradient(180deg, #FD0000 25%,#FD0007 96%)100% 100% / 200% 200%; font: normal 15px / 30px sans-serif; color: #ffffff; opacity: .75; }

      #lrc { position: absolute; top: 460px; font: bold 2.5em sans-serif;font-family:华文隶书; filter:drop-shadow(#FFFfff 1px 0 0)drop-shadow(#FFFfff 0 1px 0)drop-shadow(#FFFfff -1px 0 0) drop-shadow(#FFFfff 0 -1px0);color: transparent; letter-spacing: 2px; background: linear-gradient(45deg, #012BFA 21%,#F60303 75%) 100% 100% / 200% 200%; background-



clip: text; -webkit-background-clip: text; }

      #mpic { position: absolute; width: 100%; height: 100%; mix-blend-mode: multiply; }

      @keyframes bgMove1 { from { background-position: 0 0; } to { background-position: -100% 0; } }

      @keyframes bgMove2 { from { background-position: 0 0; } to { background-position: -100% 0; } }

</style>



<div style="z-index: 127;width: 1024px; height: 600px; margin-top:50px; margin-left:-230px;box-shadow: 0px 0px 0px 2px #ffffff, 0px 0px 0px 15px #880000; overflow: hidden;transform:rotate(0deg);background-size: 100% 100%;background:url(http://chuangshicdn.data.mvbox.cn/album/22/03/14/22031417263445440463.gif)0 0/30%30%,linear-gradient(50deg, #000080, #ff0000, #000000, #00f000); text-align: center;">

<div id="papa">

<divclass='photo '>

      <imgclass='photo '><img class='photo ' ><img class='photo '><imgclass='photo '><img class='photo ' ><img class='photo '><imgclass='photo '><imgclass='photo '>



</div>

      <div id="lrc">马黑老师卡拉OK播放器</div>

      <div id="mplayer">

                <div id="btnwrap"><span id="btnplay"></span><span id="btnpause"></span></div>

                <div id="prog">00:00 | 00:00</div>

      </div>

</div>

</div>

<script>

let lrcAr = [

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

        ,

       

];

let mKey = 0, mSeek = false, mFlag = true;

let aud = new Audio();



aud.src = 'https://www.qqmc.com/mp3/music4173885.mp3';

aud.autoplay = true;

aud.loop = true;



btnwrap.onclick = () => aud.paused ? aud.play() : aud.pause();

prog.onclick = (e) => aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;

aud.addEventListener('pause', () => mState());

aud.addEventListener('play', () => mState());

aud.addEventListener('seeked', () => calcKey());



aud.addEventListener('timeupdate', () => {

      prog.style.background= 'linear-gradient(90deg, green, red ' + aud.currentTime / aud.duration * 100 + '%, snow 0)';

      prog.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);

      for(j=0; j<lrcAr.length; j++) {

                if(aud.currentTime >= lrcAr) {

                        if(mKey === j) showLrc(lrcAr);

                        else continue;

                }

      }

});



let mState = () => aud.paused ? (btnplay.style.display = 'block', btnpause.style.display = 'none', lrc.style.animationPlayState = 'paused') : (btnplay.style.display = 'none',



btnpause.style.display = 'block', lrc.style.animationPlayState = 'running');



let showLrc = (time) => {

      lrc.style.animation = (mFlag ? 'bgMove1 ' : 'bgMove2 ') + time + 's linear forwards';

      lrc.innerHTML = lrcAr;

      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;

      let mtime = lrcAr - (aud.currentTime - lrcAr);

      showLrc(mtime);

}



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;

}

</script>


马黑黑 发表于 2022-9-24 07:53

欣赏大作

红影 发表于 2022-9-24 09:16

漂亮的图片轮播效果,歌词同步也很赞。欣赏亚伦老师好帖{:4_187:}

加林森 发表于 2022-9-25 11:31

都是大美女啊。
页: [1]
查看完整版本: 缘(中慢四 新做版本) - 高胜美