2025 狠狠的幸福(live 合唱版)
<style>
#papa { margin: 0 0 0 calc(50% - 681px);; display: grid; place-items: center; width: 1200px; height: 640px; background: gray url('https://img-baofun.zhhainiao.com/pcwallpaper_ugc/scene/72147bc601e888f7435f8184c2737e72_preview.jpg') no-repeat center/cover; box-shadow: 8px 4px 20px #000; overflow: hidden; user-select: none; position: relative; perspective: 3000px; perspective-origin: 50% 15%; z-index: 1; overflow: hidden; }
.vid { position: absolute; width: 1200px; height: 630px; clip-path: circle(66% at top) ;top: -55px; right:0px; object-fit: cover; opacity: .4;mix-blend-mode: screen;}
#papa::before { position: absolute;content: ''; top: 20px; width: 200px; height: 100px;left: 50%; background: url('https://pic.imgdb.cn/item/6247e3c027f86abb2a56f17a.gif') no-repeat center/cover; border-radius: 100%; transform-style: preserve-3d; transform: rotateY(180deg) rotateZ(-0deg); pointer-events: none; box-shadow: 0px 0px 0px #222; }
</style>
<div id="papa"></div>
<audio id="aud" src="https://www.joy127.com/url/118517.mp3" loop autoplay></audio>
<script >
(function() {
(function(mkPlayer) {let defaults = {lrcAr: [,],ttAr: ['花潮', '论坛', 'LRC', '在线','HCP','Player'],lrc_css: 'top: 20px; left: 50%; transform: translateX(-50%);',player_css: 'bottom: 20px; left: calc(50% - 50px);',playerCode: `<style>#mplayer {--bg1: tan;--bg2: tan;--bg3: tan;--bg4: tan;--bg5: tan;--bg6: tan;--bg7: tan;--bg8: tan;--border: 1px dotted orange;position: absolute;width: 120px;height: 80px;cursor: pointer;transform-style: preserve-3d;animation: rot 16s linear infinite;animation-play-state: paused;display: grid;place-items: center; }#mplayer > span {width: 100%;height: 100%;border: var(--border);display: grid;place-items: center;font: norml 1.5em sans-serif;position: absolute;}#btnMsg {--btnColor: white;--btnBg: #0089f0;position: absolute;top:120px; left: calc(50% - 76px); color: var(--btnColor);background: var(--btnBg);opacity: 0;border: 2px solid var(--btnColor);border-radius: 8px;padding: 4px;transition: all .75s;cursor: pointer;z-index: 901;}#lrc {--motion: cover2;--tt: 1s;--state: running;--bg: linear-gradient(180deg, hsla(100, 10%, 50%, .75), hsla(100, 100%, 20%, .65));position: absolute;font: bold 2.4em sans-serif;color: hsl(100, 100%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 2px hsla(0, 100%, 0%, .85));z-index: 900;}#lrc::before {position: absolute;content: attr(data-lrc);width: 20%;height: 100%;color: transparent;overflow: hidden;white-space: pre;background: var(--bg);filter: inherit;-webkit-background-clip: text;animation: var(--motion) var(--tt) linear forwards;animation-play-state: var(--state);}@keyframes rot { to {transform: rotateY(-360deg); } }@keyframes cover1 { from { width: 0; } to { width: 100%; } }@keyframes cover2 { from { width: 0; } to { width: 100%; } }</style><div id="lrc"data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></div><span id="btnMsg">全屏观赏</span>`,};let playCode = (user_config) => {let data = Object.assign({}, defaults, user_config);papa.innerHTML += data.playerCode;mplayer.style.cssText += data.player_css;lrc.style.cssText += data.lrc_css;btnMsg.style.cssText += data.btn_css;let mKey = 0,mFlag = true,fs = false,tnow = Date.now(),timerId;let sps = mplayer.children;let width = mplayer.offsetWidth, angle = 45;let trz = Math.ceil(Math.tan(Math.PI / 180 * (198- angle) /2 ) * width / 2);Array.from(sps).forEach( (item,key) => {let ry = Math.floor(key*45);sps.style.transform = `rotateY(${ry}deg) translateZ(${trz}px)`;sps.style.background = `var(--bg${key+1})`;sps.innerText = data.ttAr;});mplayer.onclick = () => aud.paused ? aud.play() : aud.pause();btnMsg.onclick = () => fs ? document.exitFullscreen() : papa.requestFullscreen();papa.onmousemove = (e) => {clearTimeout(timerId);btnMsg.style.opacity = '.95';timerId = setTimeout('btnMsg.style.opacity = "0"', 3000);};document.addEventListener("fullscreenchange", () => {if (document.fullscreenElement !== null) {fs = true;btnMsg.innerText = '退出全屏';} else {fs = false;btnMsg.innerText = '全屏观赏';}});aud.addEventListener('pause', () => mState());aud.addEventListener('play', () => mState());aud.addEventListener('seeked', () => calcKey());let mState = () => aud.paused ? (lrc.style.setProperty('--state', 'paused'), mplayer.style.animationPlayState = 'paused') : (lrc.style.setProperty('--state', 'running'), mplayer.style.animationPlayState = 'running');aud.addEventListener('timeupdate', () => {for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime >= data.lrcAr) {if (mKey === j) showLrc(data.lrcAr);else continue;}}});let showLrc = (time) => {let name = mFlag ? 'cover1' : 'cover2';lrc.innerHTML = data.lrcAr;lrc.dataset.lrc = data.lrcAr.replace(/<br>/, '\n');lrc.style.setProperty('--motion', name);lrc.style.setProperty('--tt', time + 's');lrc.style.setProperty('--state', 'running');mKey += 1;mFlag = !mFlag;};let calcKey = () => {for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime <= data.lrcAr) {mKey = j - 1;break;}}if (mKey < 0) mKey = 0;if (mKey > data.lrcAr.length - 1) mKey = data.lrcAr.length - 1;let time = data.lrcAr - (aud.currentTime - data.lrcAr);showLrc(time);};};mkPlayer.HCPlayer = playCode;})(this);
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
HCPlayer({
lrcAr: lrcAr,
lrc_css:`
--bg: linear-gradient(hsla(180,55%,40%,.15),hsla(200,90%,45%,.7));
bottom: 30px;
color: snow;
`,
ttAr: ['','','','','','','',''],
player_css: `
--bg1: url('https://bbs.cnzv.cc/up/upload/pic/6a725ba722865ce1b395ae03d4ce07c0.jpg') no-repeat center/cover;
--bg2: url('https://bbs.cnzv.cc/up/upload/pic/5eeaacd42f915e3b3a54afa10a8fda1f.jpg') no-repeat center/cover;
--bg3: url('https://bbs.cnzv.cc/up/upload/pic/5d2cd3f5abded5909767dec2bd1ea008.jpg') no-repeat center/cover;
--bg4: url('https://bbs.cnzv.cc/up/upload/pic/8356318b2cd8306aad93131a20851ff0.jpg') no-repeat center/cover;
--bg5: url('https://bbs.cnzv.cc/up/upload/pic/9a4ac94f2afe5f8c1b11ac87071b0191.jpg') no-repeat center/cover;
--bg6: url('https://bbs.cnzv.cc/up/upload/pic/161079768da91a0512bbe46642d9fcf6.jpg') no-repeat center/cover;
--bg7: url('https://bbs.cnzv.cc/up/upload/pic/9103b365c0077d3a52ec9e84aa843448.jpg') no-repeat center/cover;
--bg8: url('https://bbs.cnzv.cc/up/upload/pic/3a72507743f401a056962a163eb7a53f.jpg') no-repeat center/cover;
--border: 1px dotted olive;
width: 168px;
height: 220px;
top: 240px;
`,
btn_css: '--btnColor: white; --btnBg: transparent;',
});
})();
</script> 谢谢精彩分享,祝福醉美管理员2025 狠狠的幸福:) klxf 发表于 2024-12-15 23:29
谢谢精彩分享,祝福醉美管理员2025 狠狠的幸福
谢谢友友光临! 谢谢楼主的辛苦分享
页:
[1]