洛天依 - 极夜
<style>#papa { margin: 0 0 0 calc(50% - 593px); width: 1024px; height: 640px; display: grid; place-items: center; background: #0b1a3a url('https://638183.freep.cn/638183/t22/webp/jiye.webp') no-repeat center/cover; box-shadow: 3px 3px 20px #000; overflow: hidden; position: relative; z-index: 1; }
#mama { position: absolute; width: 50%; height: 100%; background: radial-gradient(circle at 100% 100%, transparent 45%, #bd63c1 55%, #53e5a6 65%, transparent 85%); transform: rotate(35deg) scaleX(2); mix-blend-mode: color-dodge; filter: url(#wave); }
</style>
<div id="papa"><div id="mama"></div><svg><defs><filter id='wave'><feTurbulence basefrequency='0.00510 0.01099' id='turb' numoctaves='3' result='noise' seed='10' /><feDisplacementMap id='displacement' in2='noise' in='SourceGraphic' scale='96' /></filter></defs></svg></div>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1990140903.mp3" loop autoplay></audio>
<script>
(function() {
let frames = 0, rad = Math.PI / 180;
(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 10px; left: 50%; transform: translateX(-50%);',player_css: 'bottom: 20px; left: 50%; transform: translateX(-50%);',playerCode: `<style>#mplayer {position: absolute;bottom: 20px;display: grid;grid-template-areas: 'cur btnplay dur''prog prog prog';gap: 4px;place-items: end center;color: var(--color);font: normal 16px sans-serif;z-index: 999;--ww: 240px;--color: hsla(0,100%,90%,.6);--track: hsla(90,100%,95%,.65);--prog: linear-gradient(90deg,hsla(90,30%,50%,.55),hsla(180,100%,50%,.65));}#btnplay {--state: paused;grid-area: btnplay;background: conic-gradient(red,orange,yellow,green,teal,blue,purple);border-radius: 50%;width: 35px;height: 35px;cursor: pointer;animation: rot linear 3s infinite;animation-play-state: var(--state);}#prog {--xx: 0px;grid-area: prog;width: var(--ww);height: 10px;border-radius: 6px;background: var(--track);position: relative;cursor: pointer;}#prog::before {position: absolute;content: '';width: var(--xx);height: 100%;border-radius: 6px;background: var(--prog);}#cur { grid-area: cur; color: var(--color); }#dur { grid-area: dur; color: var(--color); }#lrc {--motion: cover2;--tt: 2s;--state: paused;--bg: linear-gradient(180deg, hsla(60, 50%, 50%, .45), 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><span id="prog"></span><span id="cur">00:00</span><span id="dur">00:00</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;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', () => {let prg = aud.currentTime * prog.offsetWidth / aud.duration < 6 ? 6 : aud.currentTime * prog.offsetWidth / aud.duration;cur.innerText = toMin(aud.currentTime);dur.innerText = toMin(aud.duration);prog.style.setProperty('--xx', prg + 'px');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;}};mkPlayer.HCPlayer = playCode;})(this);
(function motion() {bfx = 0.005;bfy = 0.005;frames += .5;bfx += 0.0025 * Math.cos(frames * rad);bfy += 0.0025 * Math.sin(frames * rad);bf = bfx.toString() + ' ' + bfy.toString();turb.setAttributeNS(null, 'baseFrequency', bf);window.requestAnimationFrame(motion);})();
let lrcAr = [ , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ];
HCPlayer({lrcAr: lrcAr,lrc_css: `top: calc(100% - 140px);left: 50%;transform: translate(-50%);--bg: linear-gradient(hsla(100,70%,50%,.35),hsla(120,40%,40%,.6));color: hsla(120,100%,95%,.95)`,player_css: `bottom: 20px;--color: snow;--ww: 300px;--track: snow;--prog: linear-gradient(to right,hsla(120,100%,50%,.45),hsla(30,100%,50%,.6));`,});
})();
</script>
CSS激光效果参考网络资料 黑黑朋友早晨好!这慢慢移动的激光漂亮哎! 缓缓移动的激光效果,像一大块果冻{:4_173:} 醉美水芙蓉 发表于 2022-11-22 11:40
老师的特效好漂亮!
感谢支持 梦油 发表于 2022-11-22 09:18
黑黑朋友早晨好!这慢慢移动的激光漂亮哎!
是不错的 红影 发表于 2022-11-22 09:27
缓缓移动的激光效果,像一大块果冻
味道可能不错{:4_173:} 马黑黑 发表于 2022-11-22 12:03
是不错的
高,实在是高! 马黑黑 发表于 2022-11-22 12:03
味道可能不错
这么大,要吃到什么时候{:4_173:} 红影 发表于 2022-11-22 21:47
这么大,要吃到什么时候
独食可能会吃很久{:5_105:} 马黑黑 发表于 2022-11-22 21:48
独食可能会吃很久
分食也吃不完,何况有人不喜欢甜食{:4_173:} 红影 发表于 2022-11-22 22:51
分食也吃不完,何况有人不喜欢甜食
也是。洛天依也才十岁,也吃不了多少 马黑黑 发表于 2022-11-22 23:53
也是。洛天依也才十岁,也吃不了多少
年纪小吃的时间更长,日积月累呗{:4_173:} 红影 发表于 2022-11-23 11:01
年纪小吃的时间更长,日积月累呗
年年过生日年年有 马黑黑 发表于 2022-11-23 11:03
年年过生日年年有
不过生日时也能吃的{:4_173:} 红影 发表于 2022-11-23 12:33
不过生日时也能吃的
就是呀,不怕吃不完,也不怕没剩下的 马黑黑 发表于 2022-11-23 13:14
就是呀,不怕吃不完,也不怕没剩下的
咱们可真会歪楼,咋从极夜歪到吃的上去了{:4_173:} 红影 发表于 2022-11-23 16:20
咱们可真会歪楼,咋从极夜歪到吃的上去了
你说极光的流动像果冻 马黑黑 发表于 2022-11-23 18:34
你说极光的流动像果冻
的确很像啊{:4_189:}