本帖最后由 花简静 于 2024-3-10 18:35 编辑
<style>
#papa { margin: 130px 0 30px calc(50% - 931px); display: grid; place-items: center; width: 1700px; height: 900px; background: url('https://pic.imgdb.cn/item/65ec6fa79f345e8d03a3fcd9.jpg') no-repeat center/cover, radial-gradient(black, rgba(0,150,150,.2)); background-blend-mode: screen; box-shadow: 3px 3px 20px #000; overflow: hidden; position: relative; z-index: 1; }
#papa::before { position: absolute; content: ''; inset: 0; transform-origin: 1170px 500px; background: var(--bg); transform: scale(1) rotate(0); filter: brightness(.3); opacity: .5;animation: flash 2s linear infinite alternate var(--state); }
#lrc { position: absolute; bottom: 10px; font: bold 1.8em sans-serif; color: gray; text-shadow: 1px 1px 1px rgba(250,250,250,.45); --ani: lrcGo1; --duration: 1s; }
#lrc::before { position: absolute; content: attr(data-lrc); width: 100%; height: 100%; color: transparent; background: repeating-radial-gradient(circle, orange, snow 28px); background-clip: text; -webkit-background-clip: text; clip-path: inset(0 100% 0 0); animation: var(--ani) var(--duration) linear forwards var(--state); border-bottom: 2px dotted gray; }
#mplayer { position: absolute; bottom: 45px; text-align: center; color: lightblue; }
#mplayer::before { position: absolute; content: attr(data-tt); left: 0; bottom: 25px; width: 100%; text-align-last: justify; }
#mprog { width: 280px; accent-color: orange; outline: none; cursor: pointer; opacity: .7; }
#mprog:focus { accent-color: gold; }
#btnplay { width: 50px; height: 50px; cursor: pointer; animation: rotating 6s infinite linear var(--state); }
#btnplay:hover { filter: invert(.2); }
li-zi { position: absolute; background: url('https://pic.imgdb.cn/item/65ec5b039f345e8d03f0e7b6.gif') no-repeat center/cover; offset-path: path('M0 400 Q570 -260 1140 400'); offset-distance: 0; transform: rotateY(180deg);mix-blend-mode: multiply;animation: move 10s linear infinite var(--state); }
@keyframes rotating { to { transform: rotate(360deg); } }
@keyframes lrcGo0 { to { clip-path: inset(0 0 0 0); } }
@keyframes lrcGo1 { to { clip-path: inset(0 0 0 0); } }
@keyframes move { to { offset-distance: 100%; } }
#papa video { position: absolute; bottom:0; width: 100%; height: calc(100% + 100px); object-fit: cover; mix-blend-mode: screen; pointer-events: none;opacity: .1; }
@keyframes flash { to { transform: scale(2) rotate(10deg); filter: brightness(2); } }
</style>
<div id="papa">
<audio src="https://music.163.com/song/media/outer/url?id=1881350804"></audio>
<video src="https://img.tukuppt.com/video_show/2414777/00/01/68/5b4854b8add7c.mp4" muted loop></video>
<div id="mplayer" data-tt="0:00 0:00">
<img id="btnplay" src="https://638183.freep.cn/638183/t23/btn/y5j.png" alt="" /><br>
<input id="mprog" type="range" min="0" max="100" step="any" value="0" title="调节进度" />
</div>
<div id="lrc" data-lrc="HuaChao LRC">HuaChao LRC</div>
</div>
<script>
(function() {
var bgstrAr = ['conic-gradient(at 1170px 500px'];
Array.from({length: all=12}).forEach((item,key) => {
bgstrAr.push([`transparent ${key*360/all}deg,rgba(200,100,100,.1) ${key*360/all + 5}deg,transparent ${key*360/all + 10}deg`]);
});
papa.style.setProperty('--bg', bgstrAr.join(','));
})();
</script>
<script>
var geci = [
[-0.2,"单曲:两只蝴蝶",2.1],
[1.9,"歌手:庞龙",2.1],
[3.99,"所属专辑:庞龙 杯水情歌",1.5],
[5.54,"作词 : fourteen",1.3],
[6.89,"作曲 : fourteen",1.3],
[8.2,"学习黑师20240308《千灯展卷》粒子路径飞舞效果",4.9],
[31.07,"亲爱的你慢慢飞",4.4],
[37.19,"小心前面带刺的玫瑰",3.3],
[42.01,"亲爱的你张张嘴",3.5],
[47.19,"风中花香会让你沉醉",3.3],
[52.03,"亲爱的你跟我飞",3.4],
[57.08,"穿过丛林去看小溪水",3.4],
[62.08,"亲爱的来跳个舞",3.3],
[67.01,"爱的春天不会有天黑",3.8],
[72.5,"我和你缠缠绵绵翩翩飞",5.3],
[79,"飞跃这红尘永相随",4.0],
[84.01,"追逐你一生",2.2],
[86.88,"爱恋我千回",1.8],
[89.35,"不辜负我的柔情你的美",3.6],
[94.04,"我和你缠缠绵绵翩翩飞",3.6],
[99.06,"飞跃这红尘永相随",3.8],
[104.56,"等到秋风起秋叶落成堆",4.0],
[109.27,"能陪你一起枯萎也无悔",3.8],
[136.96,"亲爱的你慢慢飞",3.5],
[141.95,"小心前面带刺的玫瑰",4.3],
[147.19,"亲爱的你张张嘴",4.8],
[152,"风中花香会让你沉醉",3.5],
[157.16,"亲爱的你跟我飞",3.2],
[161.99,"穿过丛林去看小溪水",3.5],
[167.07,"亲爱的来跳个舞",3.4],
[172,"爱的春天不会有天黑",3.8],
[179.07,"我和你缠缠绵绵翩翩飞",3.5],
[184.01,"飞跃这红尘永相随",4.0],
[189.01,"追逐你一生爱恋我千回",5.1],
[194.06,"不辜负我的柔情你的美",4.8],
[199.06,"我和你缠缠绵绵翩翩飞",3.6],
[204.08,"飞跃这红尘永相随",3.8],
[209.55,"等到秋风起秋叶落成堆",4.0],
[214,"能陪你一起枯萎也无悔",4.2],
[219.09,"我和你缠缠绵绵翩翩飞",3.6],
[224.07,"飞跃这红尘永相随",3.7],
[229.54,"等到秋风起秋叶落成堆",4.0],
[234.06,"能陪你一起枯萎也无悔",4.0],
[239.04,"等到秋风起秋叶落成堆",4.5],
[244.04,"能陪你一起枯萎也无悔",5.8]
];
var sF = document.createElement('script');
sF.charset = 'utf-8';
sF.src = 'https://638183.freep.cn/638183/web/js/rangelrc2024-01.js';
document.querySelector('body').appendChild(sF);
sF.onload = () => {
Array.from({length: all=3}).forEach(star => {
var size = 30 + Math.floor(Math.random() * 100);
star = document.createElement('li-zi');
star.style.cssText += `
left: 0;
top: ${Math.random() * 140 + 60}px;
width: ${size}px;
height: ${size}px;
opacity: ${Math.random() * 0.4 + 0.4};
animation-delay: -${Math.random() * 10}s, -${Math.random() * 5}s;
`;
papa.prepend(star);
});
};
</script>
<br><br><br><br><br><br>
|