本帖最后由 马黑黑 于 2024-3-4 08:29 编辑
代码:
<style>
#papa { margin: 0 0 0 calc(50% - 593px); display: grid; place-items: center; width: 1024px; height: 640px; background: lightblue; 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; background: url('https://638183.freep.cn/638183/t24/1/13.jpg') no-repeat center/cover; }
#papa:hover::before { transform: scale(1.2); }
#papa:fullscreen::before { transform: unset; }
#lrc { position: absolute; top: 20px; font: bold 2.4em sans-serif; color: silver; 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: rgba(0,100,100,.2); background: linear-gradient(to bottom, rgba(10,200,10,.35), rgba(0,100,200,.8)); background-clip: text; -webkit-background-clip: text; clip-path: inset(0 100% 0 0); animation: var(--ani) var(--duration) linear forwards var(--state); }
#mplayer { position: absolute; left: 52%; bottom: 10px; 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: snow; outline: none; cursor: pointer; }
#mprog:focus { accent-color: lightblue; }
#btnplay { width: 50px; height: 50px; cursor: pointer; animation: rotating 6s infinite linear var(--state); }
#btnplay:hover { filter: invert(.2); }
#btnFs { position: absolute; left: 38%; bottom: 10px; color: silver; background: none; opacity: 0; border: 2px solid silver; 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%; } }
</style>
<div id="papa">
<audio src="https://music.163.com/song/media/outer/url?id=28285910"></audio>
<video src="https://img.tukuppt.com/video_show/2475824/00/08/39/5d21bde6a1eca.mp4" muted loop></video>
<div id="mplayer" data-tt="0:00 0:00">
<img id="btnplay" src="https://638183.freep.cn/638183/t23/btn/meihua_133482968750383750.png" 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>
var geci = [ [2,"金玟岐 - 岁月神偷",3.7], [15.37,"能够握紧的就别放了",3.8], [19.15,"能够拥抱的就别拉扯",4.0], [23.33,"时间着急的冲刷着",4.2], [27.79,"剩下了什么",3.1], [31.47,"原谅走过的那些曲折",3.9], [35.34,"原来留下的都是真的",3.9], [39.32,"纵然似梦啊半醒着",4.2], [43.72,"笑着哭着都快活 谁让~",6.1], [51.22,"时间是让人猝不及防的东西",3.9], [55.17,"晴时有风阴有时雨",3.6], [59.07,"争不过朝夕又念着往昔",3.8], [63.15,"偷走了青丝却留住一个你",4.1], [67.25,"岁月是一场有去无回的旅行",3.9], [71.19,"好的坏的都是风景",3.5], [75.2,"别怪我贪心只是不愿醒",3.8], [79.12,"因为你只为你愿和我一起",4.1], [83.18,"看云淡风轻",3.9], [99.61,"能够握紧的就别放了",3.5], [103.28,"能够拥抱的就别拉扯",4.0], [107.32,"时间着急的冲刷着",4.1], [111.82,"剩下了什么",3.1], [115.39,"原谅走过的那些曲折",3.8], [119.27,"原来留下的都是真的",3.9], [123.28,"纵然似梦啊半醒着",4.2], [127.81,"笑着哭着都快活 谁让~",6.1], [135.32,"时间是让人猝不及防的东西",3.8], [139.1,"晴时有风阴有时雨",3.9], [143.13,"争不过朝夕又念着往昔",3.9], [147.15,"偷走了青丝却留住一个你",3.8], [151.16,"岁月是一场有去无回的旅行",4.0], [155.19,"好的坏的都是风景",3.6], [159.1,"别怪我贪心只是不愿醒",3.8], [162.85,"因为你只为你愿和我一起",4.2], [167.05,"看云淡风轻",4.3], [183.3,"时间是让人猝不及防的东西",3.6], [186.95,"晴时有风阴有时雨",3.7], [191.18,"争不过朝夕又念着往昔",3.9], [195.16,"偷走了青丝却留住一个你",3.8], [198.92,"岁月是一场有去无回的旅行",4.2], [203.07,"好的坏的都是风景",3.8], [207.19,"别怪我贪心只是不愿醒",3.9], [211.18,"因为你只为你愿和我一起",4.1], [216.86,"看云淡风轻",3.2] ];
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);
</script>
|