本帖最后由 雨中悄然 于 2023-2-8 12:59 编辑 <br /><br /><style>
#papa {
margin: 0 0 0 calc(50% - 593px);
width: 1024px;
height: 640px;
background: gray url('https://pic.imgdb.cn/item/63e329e44757feff33c7e80b.jpg') no-repeat center/cover;
box-shadow: 3px 3px 20px #000;
position: relative;
z-index: 1;
}
#mplayer {
--state: paused;
position: absolute;
width: 140px;
height: 140px;
left: 70%;
top: 27%;
border-radius: 50%;
background: none;
box-shadow: inset 0 0 80px hsla(5,80%,36%,.8);
transform: rotate(45deg);
cursor: pointer;
}
#mplayer::before, #mplayer::after {
position: absolute;
content: '';
left: -10px;
top: -10px;
right: -10px;
bottom: -10px;
border: 4px solid yellow;
clip-path: inset(90% 0% 0% 0%);
animation: clip 8s infinite linear;
animation-play-state: var(--state);
}
#mplayer::after {
animation-delay: -4s;
}
@keyframes clip {
36% { clip-path: inset(0% 0% 0% 90%); border-color: Cornislk; }
50% { clip-path: inset(0% 0% 90% 0%); border-color: Crimson; }
80% { clip-path: inset(0% 90% 0% 0%); border-color: Lime; }
100% { clip-path: inset(80% 0% 0% 0%); border-color: yellow; }
}
</style>
<div id="papa">
<div id="mplayer"></div>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=108711.mp3" autoplay loop></audio>
</div>
<script>
(function() {
(function(mkFS) {let setFullScreen = (user_set) => {let pa = user_set.pa;if(typeof(pa) !== 'object') return false;if(!user_set.set) user_set.set = 'color: snow; background: black; border: 2px solid snow; left: 40px; bottom: 40px;';btnMsg = document.createElement('span');btnMsg.style.cssText = `position: absolute; border-radius: 8px; padding: 4px; cursor: pointer; z-index:998; ${user_set.set}`;btnMsg.innerText = '全屏观赏';btnMsg.style.display = 'none';pa.appendChild(btnMsg);let timerId, fs = false;btnMsg.onclick = () => fs ? document.exitFullscreen() : pa.requestFullscreen();pa.addEventListener('mousemove', (e) => {clearTimeout(timerId);btnMsg.style.display = 'block';timerId = setTimeout('btnMsg.style.display = "none"', 3000);});document.addEventListener('fullscreenchange', () => {if (document.fullscreenElement !== null) {fs = true;btnMsg.innerText = '退出全屏';} else {fs = false;btnMsg.innerText = '全屏观赏';}});};mkFS.FS = setFullScreen;})(this);
let mState = () => mplayer.style.setProperty('--state', aud.paused ? 'paused' : 'running');
aud.addEventListener('pause', () => mState());
aud.addEventListener('play', () => mState());
mplayer.addEventListener('click', () => {
aud.paused ? aud.play() : aud.pause();
});
FS({
pa: papa,
set: 'color: snow; background: black; border: 2px solid snow; left: 20px; bottom: 20px;',
});
})();
</script>
樵歌 发表于 2023-1-21 19:30
小九在家团年吃火锅呢,估计辣得脸上红霞飞
川妹子火锅必须的
小九 发表于 2023-1-21 20:05
是下大雪了,可惜我的窗外没有哦
{:5_150:}已经看到了
红影 发表于 2023-1-21 20:43
看到九儿拍过的呢
嗯嗯,山城雪景,应该绝美
雨中悄然 发表于 2023-1-21 20:58
谁说了算采谁
{:5_106:}
雨中悄然 发表于 2023-1-21 20:56
煮好了
还没吃光
马黑黑 发表于 2023-1-21 21:05
还没吃光
你算的真准
马黑黑 发表于 2023-1-21 21:05
鸡蛋
雨中悄然 发表于 2023-1-21 21:06
鸡蛋
必须的
雨中悄然 发表于 2023-1-21 21:05
你算的真准
五个手指一般都能掐指一算
马黑黑 发表于 2023-1-21 21:08
五个手指一般都能掐指一算
半神
雨中悄然 发表于 2023-1-21 20:54
吃了饺子,还灌了饺子汤
原汤化原食{:5_116:}
鱼儿 发表于 2023-1-21 21:46
原汤化原食
现在配着春晚灌水
雨中悄然 发表于 2023-1-21 15:34
小九耳朵痒痒
聼他們說,山上雪很大,我怕冷,沒敢上山呢
雨中悄然 发表于 2023-1-21 20:55
谁说了算呢
是真的,就是說的沙坪三峽廣場的兔子燈籠的造型很丑
红影 发表于 2023-1-21 20:43
看到九儿拍过的呢
是朋友拍攝過來,我發到群裏的,我這裏,陽臺上都沒有看到雪花
小九 发表于 2023-1-21 21:54
聼他們說,山上雪很大,我怕冷,沒敢上山呢
山不好上
小九 发表于 2023-1-21 21:55
是真的,就是說的沙坪三峽廣場的兔子燈籠的造型很丑
我也刷到过。教材都丑,今年的邮票也丑。不知道谁管的
雨中悄然 发表于 2023-1-21 21:10
半神
加半仙, 突然記得半仙是你{:4_189:}
雨中悄然 发表于 2023-1-21 21:10
半神
{:4_181:}