撒哈拉的雨 发表于 2023-1-31 13:03

烟雨蒙蒙


<meta charset="utf-8">
<style>
#papa {
      margin: 120px 0 0 calc(50% - 681px);
      width: 1200px;
      height: 675px;
      background: #666 url('https://pan.doliy.cn/filestores/2023/01/31//5eec17f78035c9253537825014742b18.jpg') no-repeat center/cover;
      box-shadow: 3px 3px 20px #000;
      position: relative;
}

@keyframes sh{ 20% { opacity: .1; }   40% { opacity: 1; transform: translate(20px,310px);}100% { opacity: .1;transform: translate(0px,-500px); }}
.cd { position: absolute; width: 1020px; height: 675px; object-fit: cover; opacity: .5; clip-path: circle(90% at bottom) ;mix-blend-mode: screen;}

#rw{ position: absolute; width: 182px; height: 311px; top: 280px; left: 50px; }

</style>

<div id="papa">


      <video class="cd" src="https://img.tukuppt.com/video_show/15653652/00/80/83/60d0445e4511e.mp4" autoplay="autoplay" loop="loop" muted="muted"></video>

</div>
<audio id="aud" src="https://pan.doliy.cn/filestores/2023/01/31//51c01c825048a5a6014421fd5040d519.mp3" loop autoplay></audio>

<script >

(function(mkPlayer) {let defaults = {lrcAr: [],lrc_css: 'top: 550px; 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><meter id="prog" max="100" low="25" high="75" optimum="85" value="0"></meter><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: 50px; left: 200px; --bg: #e9eaef;',
      //player_css: 'bottom: 20px; left: 200px; --color: #ccc; --ww: 180px;',
});
</script>
<br><br>

撒哈拉的雨 发表于 2023-1-31 13:04

电脑欣赏背景效果好,手机不能显示MV效果

楚心兰 发表于 2023-1-31 15:52

手机卡位

宁静 发表于 2023-2-1 14:23

电脑上来的,意境特别美{:9022:}

宁静 发表于 2023-2-1 14:24

歌曲也是好听,是陈瑞唱的?

一抹微蓝 发表于 2023-2-4 20:01

好听好看意境特别喜欢,歌儿好听有些伤,问好撒雨{:10_402:}

撒哈拉的雨 发表于 2023-2-5 16:56

楚心兰 发表于 2023-1-31 15:52
手机卡位

谢谢美女欣赏,元宵节快乐!

撒哈拉的雨 发表于 2023-2-5 16:57

宁静 发表于 2023-2-1 14:23
电脑上来的,意境特别美

这个雨蒙蒙要电脑欣赏,手机看不见视频背景效果

撒哈拉的雨 发表于 2023-2-5 16:58

一抹微蓝 发表于 2023-2-4 20:01
好听好看意境特别喜欢,歌儿好听有些伤,问好撒雨

谢谢微蓝欣赏,今天吃汤圆没有?

一抹微蓝 发表于 2023-2-6 20:34

撒哈拉的雨 发表于 2023-2-5 16:58
谢谢微蓝欣赏,今天吃汤圆没有?

昨天吃了两顿,哈哈,那个甜呀
页: [1] 2
查看完整版本: 烟雨蒙蒙