《Like I Do》
<style>#papa { margin: 60px 0 0 calc(50% - 593px); width: 1024px; height: 576px; background: lightgreen url('https://pic.imgdb.cn/item/662681f10ea9cb14033cec5c.jpg') no-repeat center/cover; box-shadow: 3px 3px 6px gray; overflow: hidden; z-index: 1; display: grid; place-items: center; pointer-events: none; position: relative; }
#papa::after { position: absolute; content: ''; background: transparent; width: 200px; height: 200px; top: 10px; cursor: pointer; pointer-events: auto; }
.vid { position: absolute; object-fit: cover; mix-blend-mode: screen; pointer-events: none; }
.vid:nth-of-type(1) { top: 10px; width: 200px; height: 200px; }
.vid:nth-of-type(2) { top: -60px; width: 100%; height: calc(100% + 60px); opacity: .5; }
</style>
<div id="papa" title="播放/暂停">
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1920233641" autoplay loop></audio>
<video class="vid" src="https://638183.freep.cn/638183/vid/u01.mp4" poster="https://638183.freep.cn/638183/small/hxxb.webp" muted loop></video>
<video class="vid" src="https://img.tukuppt.com/video_show/2269348/00/14/66/5e5a31a0b980d.mp4" muted loop></video>
</div>
<script>
var vids = document.querySelectorAll('.vid');
var mState = () => vids.forEach(vid => aud.paused ? vid.pause() : vid.play());
aud.onplaying = aud.onpause = () => mState();
papa.onclick = () => aud.paused ? aud.play() : aud.pause();
</script> @澜天
澜天版版 学生有些日子没来了,
一首动感音乐 活跃版块气氛哈~~{:1_292:} 澜版没来,我先听一耳朵,嘿嘿~ 朵拉 发表于 2024-4-24 20:29
@澜天
澜天版版 学生有些日子没来了,
一首动感音乐 活跃版块气氛哈~~
朵拉好
好听~~~
{:1_293:} 雾桥 发表于 2024-4-25 19:34
澜版没来,我先听一耳朵,嘿嘿~
哈
雾领导先来啦
{:1_292:} 朵拉 发表于 2024-4-24 20:29
@澜天
澜天版版 学生有些日子没来了,
一首动感音乐 活跃版块气氛哈~~
那个小太阳似的
是音量的显示呢
好玩
{:1_292:} 我喝着咖啡,听着你的歌,今儿个早上双提神;P
页:
[1]