亚伦影音工作室 发表于 2024-10-30 20:19

情罪-陈瑞

本帖最后由 亚伦影音工作室 于 2024-10-30 20:19 编辑 <br /><br /><style type="text/css">
#papa { margin: 180px -320px ; width: 1164px; height: 640px; background:#000 url('') no-repeat center/cover; box-shadow: 0px 0px 0px 2px #cccccc, 0px 0px 0px 10px #880000; position: relative; display: grid; place-items: center; z-index: 10000; overflow:hidden;transform:rotateX(0deg) scale(1)}
#papa:hover #fullscreen { display:block ;}
#fullscreen { position: absolute; top:4%; left:85%;color:#000;font: normal 2em楷体; opacity: 1; cursor: pointer; z-index: 10}
#mdiv {top:12%; left:85%;cursor: pointer;width:120px;height: 120px;animation:rot 10s linear infinite;position: absolute;filter:drop-shadow(#000 0px 0 1px);z-index: 40;}
@keyframes rot { to { transform: rotate(2turn);} }
.photo {width: 100%;height: 100%;box-shadow: 0px 0px 0px 1px #000, 0px 0px 0px 4px #fff;position: absolute;z-index: -2;top:0%; left:0%;
opacity: 0;animation: round 48s linear infinite;}
@keyframes round {0% {opacity: 0;transform:translate(0%,0%)scale(1)}
8% {opacity: 1;transform:translate(0%,0%)scale(1)}
15% {opacity: 1;transform:translate(0%,0%)scale(3)}
18% {opacity: 0;transform:translate(0%,0%)rotate(0deg)scale(3)}}
.photo:nth-child(1) {background:#000 url(https://pic.imgdb.cn/item/671d8e6dd29ded1a8cbf3d68.jpg)no-repeat center/cover;
animation-delay: 42s;}
.photo:nth-child(2) {background:#000 url(https://pic.imgdb.cn/item/67162d12d29ded1a8c2f45cf.jpg)no-repeat center/cover;
animation-delay: 36s;}
.photo:nth-child(3) {background:#000 url(https://pic.imgdb.cn/item/67162d45d29ded1a8c2fc41d.jpg)no-repeat center/cover;
animation-delay: 30s;}
.photo:nth-child(4) {background:#000 url(https://pic.imgdb.cn/item/67162cc8d29ded1a8c2e8fa0.jpg)no-repeat center/cover;
animation-delay: 24s;}
.photo:nth-child(5) {background:#000 url(https://pic.imgdb.cn/item/67162491d29ded1a8c210f14.jpg)no-repeat center/cover;
animation-delay: 18s;}
.photo:nth-child(6) { background:#000 url(https://pic.imgdb.cn/item/6713a87cd29ded1a8ccbc781.jpg)no-repeat center/cover;
animation-delay: 12s;}
.photo:nth-child(7) { background:#000 url(https://pic.imgdb.cn/item/6713a888d29ded1a8ccbd088.jpg)no-repeat center/cover;
animation-delay: 6s;}
.photo:nth-child(8) { background:#000 url(https://pic.imgdb.cn/item/65db15629f345e8d03a78591.jpg)no-repeat center/cover;
animation-delay: 0s;}
.stop .photo:nth-child(1),.stop .photo:nth-child(2),.stop .photo:nth-child(3),.stop .photo:nth-child(4),.stop .photo:nth-child(5),.stop .photo:nth-child(6),.stop .photo:nth-child(7),.stop .photo:nth-child(7),
.stop .photo:nth-child(8) {animation-play-state: paused;}
</style>
<style type="text/css">.set {
position: absolute;z-index: 1;
width: 100%;
height: 100%;
top: 0;
left: 0;}
.set div {
position: absolute;
display: block;
user-select: none;}
.set div img {pointer-events: none;
max-width: 90px;
max-height: 120px;}
.set div:nth-child(1) {
left: 20%;
animation: animate 15s linear infinite;
animation-delay: -7s;}
.set div:nth-child(2) {
left: 50%;
animation: animate 20s linear infinite;
animation-delay: -5s;}
.set div:nth-child(2) {
left: 50%;
animation: animate 20s linear infinite;
animation-delay: -5s;}
.set div:nth-child(3) {
left: 70%;
animation: animate 25s linear infinite;}
.set div:nth-child(4) {
left: 0%;
animation: animate 15s linear infinite;
animation-delay: -5s;}
.set div:nth-child(5) {
left: 85%;
animation: animate 18s linear infinite;
animation-delay: -10s;}
.set div:nth-child(6) {
left: 15%;
animation: animate 12s linear infinite;
animation-delay: -7s;}
.set div:nth-child(7) {
left: 60%;
animation: animate 14s linear infinite;
animation-delay: -7s;}
.stop .set div:nth-child(1),.stop .set div:nth-child(2),.stop .set div:nth-child(3),.stop .set div:nth-child(4),.stop .set div:nth-child(5),.stop .set div:nth-child(6),.stop .set div:nth-child(7){animation-play-state: paused;}
@keyframes animate {
0% {opacity: 0;top: -10%;transform: translateX(20px) rotate(0deg);}
10% {opacity: 1;}
20% { transform: translateX(-20px) rotate(45deg);}
40% {transform: translateX(-20px) rotate(90deg);}
60% {transform: translateX(-20px) rotate(135deg);}
80% {transform: translateX(-20px) rotate(180deg);}
100% {top: 110%;transform: translateX(-20px) rotate(225deg);}}
.set2 { transform: scale(2) rotateY(0deg); filter: blur(4px);}
.set3 { transform: scale(0.8) rotateY(3deg);filter: blur(6px);}
.lrc{z-index: 10;width: 90%;height: 180px;overflow: hidden;filter:drop-shadow(#ccc 1px 0 0)drop-shadow(#ccc 0 1px 0)drop-shadow(#ccc -1px 0 0) drop-shadow(#ccc 0 -1px0);display: block;position: absolute;top:85%; left:5%; margin: 0 auto;}
.lrc #ullrc{width: 100%;padding: 0;list-style: none;transition: 0.3s all ease; margin: 0;}
/*歌词普通样式*/
.lrc #ullrc li{height: 70px;line-height: 60px;font-family:华文隶书; font-size: 0px; color: #000078; font-weight: normal; transition: .3s all ease;list-style-type: none; text-align: center;display: block;width: 100%;margin: 0 auto;}
/*动态歌词样式*/.lrc #ullrc li.active{ font-size: 44px;color: #800080;text-align: center;}
#wzsd1 { animation: wzsd 0.56s linear infinite ;}
@keyframes wzsd {
from {opacity: 1;filter:hue-rotate(360deg)contrast(180%)brightness(200%);}
50% {opacity: 1;}
to {opacity: 1;filter:hue-rotate(0deg)contrast(140%)brightness(100%);}}
</style>
<div id="papa">
<audio autoplay="" id="aud" loop="" src="https://s2.ananas.chaoxing.com/sv-w7/audio/8a/86/ab/c1457dd84a312a4ae19386243974e18d/audio.mp3">&nbsp;</audio>
<span id="fullscreen">全屏观赏</span>
<img id="mdiv"src="https://pic.imgdb.cn/item/671d8801d29ded1a8cbb3fa7.png">
<div id="testImg">
<div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div><div class="photo"></div>
<div class="set">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
<div class="set set2">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
<div class="set set3">
<div><img alt="" src="https://pic.imgdb.cn/item/67220d84d29ded1a8c493f87.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220dc5d29ded1a8c499cae.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67220de7d29ded1a8c49cdd9.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/6722130ed29ded1a8c52391c.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf4406871b83018a08c712.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/65bf43a3871b83018a072c52.png" /></div>
<div><img alt="" src="https://pic.imgdb.cn/item/67221191d29ded1a8c4f4e65.png" /></div>
</div>
</div>
<divclass="lrc" ><div   id="wzsd1"><ul id="ullrc"></ul></div>      
</div>
</div>
<script>
var image= document.getElementById("testImg");
mdiv.onclick = () => aud.paused ? (aud.play(),image.classList.remove('stop')): (aud.pause(),image.classList.add('stop'));
aud.addEventListener('playing', () =>mdiv.style.animationPlayState = 'running');
aud.addEventListener('pause', () =>mdiv.style.animationPlayState = 'paused');
/*歌词特效*/
wzsd1.style.animationPlayState = aud.paused ? 'paused' : 'running';
aud.addEventListener('playing', () => wzsd1.style.animationPlayState = 'running');
aud.addEventListener('pause', () => wzsd1.style.animationPlayState = 'paused');
let fs = true;
      fullscreen.onclick = () => {
                fs ? (fullscreen.innerText = '退出全屏', papa.requestFullscreen()) : (fullscreen.innerText = '全屏欣赏', document.exitFullscreen());
                fs = !fs;
      };
</script>
<script >
var lrc = `情罪-陈瑞
作词:高寒
作曲:高寒
演唱:陈瑞
编曲:薛云贻
和声:南妮
混音:乐艺文化
监制:陈瑞/飞翔
营销推广:何大为
出品:飞翔文化传媒
发行:漫吞吞文化
「未经著作权人许可. 不得翻唱翻录或使用」
一个人跳着孤单的舞步
让寂寞就像流泪的红烛
任我心反反复复为谁而倾诉
端起孟婆汤心里无助
曾经欢乐有过无数
遗憾爱还是凄美的谢幕
我和你之间能有谁赢谁输
只有奈何桥分别一幕
谁是谁非谁错谁对
谁又是为谁犯下情罪
红尘再没有今生轮回
今世豪情又该为谁醉
谁是谁非谁错谁对
谁又是为谁犯下情罪
红尘再没有今生轮回
今世豪情又该为谁醉
谁是谁非谁错谁对
谁又是为谁犯下情罪
红尘再没有今生轮回
今世豪情又该为谁醉
谁是谁非谁错谁对
谁又是为谁犯下情罪
红尘再没有今生轮回
今世豪情又该为谁醉
今世豪情又该为谁醉

`;
function $(id) {return document.getElementById(id);
}//这样写以后getid方便
function getLrcArray() {
    var parts = lrc.split("\n");
    for (let index = 0; index < parts.length; index++) {
      parts = getLrcObj(parts);
    }
    return parts;

    function getLrcObj(content) {
var twoParts = content.split("]");
var time = twoParts.substr(1);
var timeParts = time.split(":");
var seconds = +timeParts;
      var min = +timeParts;
      seconds = min * 60 + seconds;
      var words = twoParts;
      return{
            seconds: seconds,
            words: words,
      };
    }
}
var lrcArray = getLrcArray();
function inputLrc() {
    for (let index = 0; index < lrcArray.length; index++) {
      var li = document.createElement("li");
      li.innerText = lrcArray.words;
      $("ullrc").appendChild(li);
    }
}
inputLrc();
function setPosition() {
    var index = getLrcIndex();
    if (index == -1) {
      return;
    }
    var lrc_li_height = 70, lrc_ul_height = 60;
    var top = index * lrc_li_height + lrc_li_height / 2 - lrc_ul_height / 2;
if (top < 0) {top = 0;}$("ullrc").style.marginTop = -top + "px";
    var activeLi = $("ullrc").querySelector(".active");
    if(activeLi){
      activeLi.classList.remove("active");}
$("ullrc").children.classList.add("active");
}
var turn = 0;
function getLrcIndex(){
var time = $("aud").currentTime + turn;for (var index = 0; index < lrcArray.length; index++) {
      if (lrcArray.seconds > time) {
            return index - 1;
      }
    }
}
$("aud").ontimeupdate = setPosition;
</script>

愤怒的葡萄 发表于 2024-10-30 20:39

姜雪宁,《宁安如梦》女主角。

红影 发表于 2024-10-30 20:43

漂亮的图片轮播,降落的气泡里还有花花草草的,真奇妙{:4_187:}

红影 发表于 2024-10-30 20:44

又是漂亮的小播,还能一键全控。
欣赏亚伦老师好帖{:4_199:}

梦油 发表于 2024-10-31 09:17

欣赏佳作,问候亚伦。

老谟深虑 发表于 2024-10-31 18:39

          欣赏老师的佳作!

小辣椒 发表于 2024-11-2 13:54

欣赏亚伦的代码编辑制作,精彩不断{:4_199:}
页: [1]
查看完整版本: 情罪-陈瑞