| 本帖最后由 云笛 于 2024-7-31 12:40 编辑 
 
 
<style>
#mydiv { margin: 0 0 0 calc(50% - 881px);
display: grid;
place-items: center;
   width: 1600px; 
   height: 900px; 
top:130px;
background: lightblue url('https://img.wyc520.com.cn/data/attachment/forum/202407/31/123841nd34sz47z8v55v7r.jpg') no-repeat center/cover;
box-shadow: 0px 0px 0px #000;
user-select: none;
overflow: hidden;
position: relative;
z-index: 3;  
}
#vid {
    position: absolute;
    width: 100%;
    height: calc(100% + 164px);
    bottom: -84px;
    object-fit: cover;
    opacity: .5;
    mix-blend-mode: screen;
    transform: rotateX(180deg);
    pointer-events: none;
}
 
#vid1 {
        position: absolute;
        width: 100%;
        height: 110%;
                right:0%;
        top:-80px;
        object-fit: cover;
        pointer-events: none;
        mix-blend-mode: screen; 
        z-index: 2;
        opacity: .70;
   
}
 
#vid2 {
        position: absolute;
        width: 100%;
        height: 110%;
                right:0%;
        top:-80px;
        object-fit: cover;
        pointer-events: none;
mix-blend-mode: color-burn; //颜色加深
 
        z-index: 2;
        opacity: .20;
transform: rotateY(180deg);视频左右翻转
   
}
 
#mypic {
    position: absolute;
    right: 1280px;
    bottom: 220px;
    width: 140px;
    height: 140px;
    filter: opacity(.55) ;
    transition: filter 1s;
    cursor: pointer;
 
}
 
 
</style>
 
<div id="mydiv">
    <audio id="aud" src="https://music.163.com/song/media/outer/url?id=2545324637" autoplay loop></audio>
    <video id="vid" src="https://img.tukuppt.com/video_show/15653652/00/79/86/60c98c8146068.mp4" autoplay="" loop="" muted=""></video> 
    <video id="vid1" src="https://img.tukuppt.com/video_show/2269348/00/17/44/5ec493e202caa.mp4" autoplay="" loop="" muted=""></video> 
    <video id="vid2" src="https://img.tukuppt.com/video_show/2629112/00/02/06/5b50a1bde9559.mp4" autoplay="" loop="" muted=""></video>         
    <img id="mypic" src="https://gd-hbimg.huaban.com/c0182b41c461144803b959e71ea7bfbc1c89f9d03cb53-G6vpZl_fw1200" alt="" />
</div>
 
<script>
(function() {
    let mState = () => {
        aud.paused ? (mypic.style.setProperty('--state','paused'), vid.pause()) : (mypic.style.setProperty('--state','running'), vid.play());
    };
    aud.addEventListener('playing', mState, false);
    aud.addEventListener('pause', mState, false);
    mypic.onclick = () => aud.paused ? aud.play() : aud.pause();
})();
</script>
<br><br><br><br><br><br>
 |