帖子代码
<style>
#papa { margin: 0 0 0 calc(50% - 593px); display: grid; place-items: center; width: 1024px; height: 640px; background: url('https://638183.freep.cn/638183/t24/1/lcls.jpg') no-repeat center/cover; box-shadow: 3px 3px 20px #000; overflow: hidden; transition: background-size .75s; position: relative; z-index: 1; }
#papa::before { position: absolute; content: ''; inset: 0; transition: .75s; mix-blend-mode: screen; background: url('https://638183.freep.cn/638183/t24/1/lcls0.jpg') no-repeat center/cover; }
#papa:hover::before { transform: scale(1.2); }
#papa:fullscreen::before { transform: unset; }
#lrc { position: absolute; left: 15px; bottom: 10px; font: bold 2.4em sans-serif; color: lightblue; text-shadow: 1px 1px 1px rgba(0,0,0,.75); --ani: lrcGo1; --duration: 1s; }
#lrc::before { position: absolute; content: attr(data-lrc); width: 100%; height: 100%; color: transparent; text-shadow: none; border-top: 3px dotted transparent; background: linear-gradient(to bottom, white, navy); background-clip: text; -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); animation: var(--ani) var(--duration) linear forwards var(--state); }
#heart { transform: rotate(30deg) scale(1); opacity: .35; cursor: pointer; z-index: 10; animation: skew .4s infinite alternate var(--state); }
#mplayer { position: absolute; right: 10px; bottom: 10px; text-align: center; color: white; }
#mplayer::before { position: absolute; content: attr(data-tt); left: 0; bottom: 25px; width: 100%; text-align-last: justify; }
#mprog { width: 280px; accent-color: lightblue; outline: none; cursor: pointer; }
#mprog:focus { accent-color: white; }
#btnplay { width: 50px; height: 50px; cursor: pointer; animation: rotating 6s infinite linear var(--state); }
#btnplay:hover { filter: invert(.2); }
#btnFs { position: absolute; left: 52%; bottom: 20px; color: white; background: none; opacity: 0; border: 2px solid white; border-radius: 6px; padding: 4px; transition: all .75s; cursor: pointer; z-index: 100; }
#papa video { position: absolute; bottom: 0; width: 100%; height: calc(100% + 100px); object-fit: cover; mix-blend-mode: soft-light; pointer-events: none; }
@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%; } }
@keyframes skew { to { transform: rotate(30deg) scale(1.1); } }
</style>
<div id="papa">
<audio src="https://file.uhsea.com/2403/144f5d343856b1ca1f82fa5bb7c20491C8.mp3"></audio>
<video src="https://img.tukuppt.com/video_show/15653652/01/33/69/62f0d6e506540.mp4" muted loop></video>
<img id="heart" src="https://638183.freep.cn/638183/web/svg/heart.svg" alt="" />
<div id="mplayer" data-tt="0:00 0:00">
<img id="btnplay" src="https://638183.freep.cn/638183/web/svg/flower_1.svg" title="播放/暂停" alt="" /><br>
<input id="mprog" type="range" min="0" max="100" step="any" value="0" title="调节进度" />
</div>
<div id="btnFs">全屏观赏</div>
<div id="lrc" data-lrc="HuaChao LRC">HuaChao LRC</div>
</div>
<script>
let geci = [ [2,"陈瑞 - 不该用痴情做牢笼",5], [32.05,"望候鸟飞向 远方 天空",4.9], [37.08,"暮色换上 秋的迷蒙",4.1], [43,"爱随着落叶 沉没于平庸",4.6], [48.04,"化作回忆 若不能相拥",4.3], [53.09,"当那一片云 乘着 狂风",5.1], [59.03,"掀起一场 泪如雨涌",4.1], [64.08,"你给的幸福 此刻变伤痛",5.1], [70,"为何还要 我学着宽容",4.1], [74.09,"都怪我 不该用痴情做牢笼",5.9], [80.01,"让你走 不必有苦衷",4.7], [85.07,"将所有的热烈 丢进了寒冬",5.7], [91.06,"直到现实 耗尽我的梦",4.9], [96.04,"都怪我 不该用痴情做牢笼",5.0], [101.08,"留不住 真心有何用",5.1], [107.01,"就算也曾有过 故事很感动",5.2], [113.03,"天荒地老 终究是虚空",4.0], [142.09,"当那一片云 乘着 狂风",5.5], [148.03,"掀起一场 泪如雨涌",4.1], [153.07,"你给的幸福 此刻变伤痛",5.0], [159.01,"为何还要 我学着宽容",4.0], [163.09,"都怪我 不该用痴情做牢笼",5.8], [169.01,"让你走 不必有苦衷",4.4], [174.06,"将所有的热烈 丢进了寒冬",5.6], [180.07,"直到现实 耗尽我的梦",4.8], [185.04,"都怪我 不该用痴情做牢笼",5.0], [190.07,"留不住 真心有何用",5.3], [196.01,"就算也曾有过 故事很感动",5.2], [202.03,"天荒地老 终究是虚空",4.2], [207,"都怪我 不该用痴情做牢笼",5.0], [212.03,"让你走 不必有苦衷",4.8], [217.07,"将所有的热烈 丢进了寒冬",5.6], [223.07,"直到现实 耗尽我的梦",4.8], [228.04,"都怪我 不该用痴情做牢笼",5.1], [233.09,"留不住 真心有何用",5.2], [239.03,"就算也曾有过 故事很感动",5.4], [245.03,"天荒地老 终究是虚空",4.4] ];
var sF = document.createElement('script');
sF.charset = 'utf-8';
sF.src = 'https://638183.freep.cn/638183/web/js/rangelrc_fs.js';
document.querySelector('body').appendChild(sF);
heart.onclick = () => btnplay.click();
</script>
|