再不疯年都过去了
本帖最后由 雨中悄然 于 2023-4-16 17:09 编辑 <br /><br /><style>#papa {
margin: -80px 0 0 calc(50% - 593px);
width:1024px;
height: 640px;
border-image: linear-gradient(35deg,tan,purple,cyan,orange,red) 4;
background: url('https://s1.ax1x.com/2023/04/16/p99tlJU.jpg') center/cover no-repeat;
box-shadow: 3px 8px 20px rgba(0,0,0,.6);
position: relative;
display:grid;
overflow: hidden;
place-items: center;
--state: paused;
animation: hue 10s infinite alternate var(--state);
}
#mplayer {position: absolute;width: 300px;height: 300px;right: 60px;bottom:180;cursor: pointer;transform-style: preserve-3d;}
.line {position: absolute;width: 1px;height: 100%;transform-style: preserve-3d;}
#vid {
position: absolute;
width: 1400px;
height: 100%;
border-radius: 2%;
opacity: .15;
object-fit: cover;
pointer-events: none;
}
#lrc {
position: absolute;
left: 50%;
bottom: 30px;
transform: translate(-50%);
height: 50px;
font: bold 30px/50px sans-serif;
background: transparent;
color:Thistle ;
display: grid;
place-items: center start;
pointer-events: none;
--motion: cover2;
--tt: 1s;
}
#lrc::before,
#lrc::after {
position: absolute;
content: '';
}
#lrc::before {
content: attr(data-lrc);
width: 0%;
height: 100%;
color: Purple;
white-space: pre;
overflow: hidden;
animation: var(--motion) var(--tt) linear forwards var(--state);
}
#lrc::after {
width: 100px;
height: 100px;
left: -100px;
border-radius: 50%;
background:center/cover no-repeat;
cursor: pointer;
pointer-events: auto;
animation: rot 4s infinite linear var(--state);
}
@keyframes cover1 {
to {
width: 100%;
}
}
@keyframes cover2 {
to {
width: 100%;
}
}
@keyframes rot {
to {
transform: rotate(360deg);
}
}
@keyframes rot { to { transform: rotateY(calc(var(--sy) + 360deg)) rotateZ(calc(var(--sz) + 360deg)); } }
@keyframes hue {
to { filter: hue-rotate(360deg); }
</style>
<div id="papa">
<div id="mplayer"></div><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><video id="vid" src="https://img.tukuppt.com/video_show/2475824/00/02/05/5b4ffd401d669.mp4" autoplay="" loop="" muted=""></video>
</div>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1964109091" autoplay loop></audio>
<script>
let total = 60, spans = [];
let mKey = 0, mFlag = true;
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
let mState = () => papa.style.setProperty('--state', aud.paused ? 'paused' : 'running');
let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = lrcAr;lrc.dataset.lrc = lrcAr.replace(/<br>/, 'n');lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');papa.style.setProperty('--state', 'running');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;if (mKey > lrcAr.length - 1) mKey = lrcAr.length - 1;let time = lrcAr - (aud.currentTime - lrcAr);showLrc(time);};
aud.addEventListener('timeupdate', () => {for(let j = 0; j < lrcAr.length; j ++) {if (aud.currentTime >= lrcAr) {if (mKey === j) showLrc(lrcAr);else continue;}}});
Array.from({length: 64}).forEach( (item,key) => {
let sp = document.createElement('span');
sp.className = 'line';
sp.style.cssText += `
--sy: ${Math.random() * 720 - 360}deg;
--sz: ${Math.random() * 720 - 360}deg;
background: rgba(${Math.random() * 50}, ${Math.random() * 255}, ${Math.random() * 50}, .8);
transform: rotateY(var(--sy)) rotateZ(var(--sz));
animation: rot 30s linear infinite var(--state);
`;
mplayer.appendChild(sp);
});
mplayer.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('play', mState, false);
aud.addEventListener('pause', mState, false);
</script> {:4_173:}小九 无尘 我就这一件衣服,过年也没买新的{:4_173:} 鱼儿 发表于 2023-1-20 21:18
我就这一件衣服,过年也没买新的
还没过,领一件还来得及{:4_173:} 和尚来了{:4_170:} 要不发个红包做新衣裳 无尘 发表于 2023-1-20 21:20
和尚来了
这个妹妹我认识{:4_173:} 我也来了{:4_189:} 雨中悄然 发表于 2023-1-20 21:21
这个妹妹我认识
这是调戏和尚{:4_189:} 绿叶清舟 发表于 2023-1-20 21:21
我也来了
俩号一块玩还是挺溜 一群疯丫头{:4_172:} 还有我{:4_196:} 雨中悄然 发表于 2023-1-20 21:22
俩号一块玩还是挺溜
这里好象不冲突的 鱼儿 发表于 2023-1-20 21:22
一群疯丫头
不疯白不疯 沧海一声啸 发表于 2023-1-20 21:23
还有我
跟你不熟{:4_173:} 雨中悄然 发表于 2023-1-20 21:24
不疯白不疯
闲着也是闲着{:7_313:} 鱼儿 发表于 2023-1-20 21:25
闲着也是闲着
哎{:4_173:} 雨中悄然 发表于 2023-1-20 21:25
跟你不熟
煮煮就熟了{:4_189:} 各位美女丫头,除夕快乐哦!{:4_204:}
多吃几片肥肉,多夹几砣鱼,啃一大鸡腿,鸭翅膀,鸡鸭鱼肉,满汉全席,再喝白酒红酒,脸上红霞飞,二麻二麻真正好。{:4_170:}