生日祝福—贺素衣芳辰(12.7)
<style>#papa {
margin: 100px 0 0 calc(50% - 681px);
width: 1200px;
height: 640px;
background: #666;
box-shadow: 3px 3px 20px #000;
display: grid;
place-items: center;
overflow: hidden;
position: relative;
}
#pic {
position: absolute;
left: 200px;
top: 40px;
width: 800px;
height: 443px;
mix-blend-mode: multiply;
-webkit-mask-image:radial-gradient(black 35%, transparent 70%);
opacity: 0.9;
}
.vid { position: absolute; width: 1200px; height: 695px; top: -55px; object-fit: cover; opacity: 1; clip-path: circle(100% at bottom) ; }
</style>
<div id="papa">
<video class="vid" src="https://img.tukuppt.com/video_show/2475824/00/02/14/5b556a0355b0d.mp4" autoplay="autoplay" loop="loop" muted="muted"></video>
<img id="pic" src="https://pic.imgdb.cn/item/638ff3f4b1fccdcd3672e45f.jpg" alt="" />
</div>
<audio id="aud" src="http://www.kumeiwp.com/sub/filestores/2022/04/11/39309404bfcad9b724a2daf72ed9ef8b.mp3" loop autoplay></audio>
<script>
(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 10px; left: 50%; transform: translateX(-50%);',player_css: 'bottom: 20px; left: 50%; transform: translateX(-50%);',btn_size: '40px',playerCode: `<style>#mplayer {position: absolute;bottom: 20px;grid-template-columns: auto auto auto;gap: 6px;display: grid;place-items: center;color: var(--color);font: normal 16px sans-serif;z-index: 999;--ww: 200px;--color: hsl(0, 100%, 100%);}#btnplay {--state: paused;width: 40px;height: 40px;background: conic-gradient(red,orange,yellow,green,teal,blue,purple);mask: radial-gradient(transparent 4px,red 0);-webkit-mask: radial-gradient(transparent 4px,red 0);border-radius: 50%;cursor: pointer;animation: rot 2s linear infinite;animation-play-state: var(--state);}#prog {width: var(--ww);height: 20px;opacity: .95;cursor: pointer;}#lrc {--motion: cover2;--tt: 2s;--state: paused;--bg: linear-gradient(180deg, hsla(60, 50%, 50%, .45), hsla(80, 70%, 50%, .6), hsla(0, 100%, 50%, .75));position: absolute;left: 20px;top: 10px;font: bold 2.4em sans-serif;color: hsl(0, 10%, 90%);white-space: pre;-webkit-background-clip: text;filter: drop-shadow(1px 1px 2px hsla(0, 0%, 0%, .95));}#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 cover1 { from { width: 0; } to { width: 100%; } }@keyframes cover2 { from { width: 0; } to { width: 100%; } }@keyframes rot { to { transform: rotate(1turn); } }</style><div id="lrc" data-lrc="HCPlayer">HCPlayer</div><div id="mplayer"><span id="btnplay"></span><progress id="prog" max="100"></progress><span id="tmsg">00:00 | 00:00</span></div>`,};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;btnplay.style.width = btnplay.style.height = data.btn_size || '40px';let mKey = 0, mFlag = true;btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();prog.onclick = (e) => aud.currentTime = aud.currentTime = aud.duration * e.offsetX / prog.offsetWidth;aud.addEventListener('timeupdate', () => {prog.value = aud.currentTime / aud.duration * 100;tmsg.innerText = `${toMin(aud.currentTime)} | ${toMin(aud.duration)}`;for (j = 0; j < data.lrcAr.length; j++) {if (aud.currentTime >= data.lrcAr) {cKey = j;if (mKey === j) showLrc(data.lrcAr);else continue;}}});aud.addEventListener('pause', () => mState());aud.addEventListener('play', () => mState());aud.addEventListener('seeked', () => calcKey());let mState = () => aud.paused ? (lrc.style.setProperty('--state','paused'),btnplay.style.setProperty('--state', 'paused')) : (lrc.style.setProperty('--state','running'),btnplay.style.setProperty('--state', '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');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);};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 setPinpu = () => {let eles = document.querySelectorAll('.pinpu');eles.forEach((item) => item.style.height = `${Math.floor(Math.random()*50) + 10}px`);};mkPlayer.HCPlayer = playCode;})(this);
let lrcAr = [
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
];
HCPlayer({
lrcAr: lrcAr,
btn_size: '45px',
lrc_css: 'top: 300px; left: 420px; --bg: linear-gradient(180deg, hsla(60, 100%, 50%, .45), hsla(0, 100%, 50%, .6), hsla(0, 100%, 50%, .85));',
player_css: 'bottom: 10px; left: 420px; --color: red; --ww: 180px;',
});
</script> 把顾念的图图选一张放到帖子里了。
下午要外出,匆忙一份小礼,祝三妹生日快乐,顺祝一对璧人幸福永远{:4_177:}{:4_187:} 好漂亮的贺帖,好听的祝福,祝素衣老师生辰快乐!{:4_204:} 借影子美帖,祝素衣朋友生日快乐。 好热闹喜庆的帖子。恭祝师妹她三妹生日快乐{:4_176:} 亲爱的,你用了视频吧,素衣手机党,视频效果看不见的,我现在手机,晚上去欣赏 祝亲爱的素衣生日快乐,幸福永相随{:4_179:} 小辣椒 发表于 2022-12-7 11:59
亲爱的,你用了视频吧,素衣手机党,视频效果看不见的,我现在手机,晚上去欣赏
没事没事,现在在家上网课,电脑可以看见了,放心吧亲爱的 红影 发表于 2022-12-7 10:51
把顾念的图图选一张放到帖子里了。
下午要外出,匆忙一份小礼,祝三妹生日快乐,顺祝一对璧人幸福永远{:4_ ...
{:4_179:}谢谢二姐,收到,美美哒搬回家 梦缘 发表于 2022-12-7 11:03
好漂亮的贺帖,好听的祝福,祝素衣老师生辰快乐!
谢谢友友,遥祝冬安 梦油 发表于 2022-12-7 11:04
借影子美帖,祝素衣朋友生日快乐。
谢谢您,中午好 樵歌 发表于 2022-12-7 11:09
好热闹喜庆的帖子。恭祝师妹她三妹生日快乐
樵哥中午好,问安 哈哈,帖子太美了。 祝福素衣生日快乐!吉祥如意!{:4_187:}{:4_204:}{:5_166:} 素衣 发表于 2022-12-7 12:20
谢谢您,中午好
素衣朋友下午好!祝愿朋友天天开心,时时快乐。 好美的祝福帖,亲爱的素衣收礼开心{:4_179:} 素衣 发表于 2022-12-7 12:20
樵哥中午好,问安
生日快乐,开心每一天{:4_187:} 素衣 发表于 2022-12-7 12:19
没事没事,现在在家上网课,电脑可以看见了,放心吧亲爱的
那太好了,亲爱的生日快乐,今天吃蛋糕没有啊 梦缘 发表于 2022-12-7 11:03
好漂亮的贺帖,好听的祝福,祝素衣老师生辰快乐!
谢谢梦缘,我们一直祝福{:4_187:} 梦油 发表于 2022-12-7 11:04
借影子美帖,祝素衣朋友生日快乐。
跟梦油一起祝福{:4_187:}
页:
[1]
2