加林森 发表于 2022-2-24 22:16

本帖最后由 加林森 于 2022-5-18 09:15 编辑 <br /><br />马黑黑 发表于 2022-2-24 22:09

{:4_191:}

<style>
        .bgBox { left: -214px; width: 1024px; height: 682px; background: rgba(0,0,0,.15) url('https://pic.imgdb.cn/item/628446160947543129449686.jpg') no-repeat center/cover; overflow: hidden; position: relative; }
        .b-img { position: absolute; width: 350px; bottom: 0; mix-blend-mode: multiply; }
        .s-img { position: absolute; width: 200px; left: calc(100% - 210px); top:5px; border-radius: 50%; opacity: .4; }
        .s-bg { position: absolute; width: 80px; height: 80px; border-radius: 50%; left: 10px; top: calc(100% - 90px); filter: drop-shadow(0 0 50px rgba(0,0,0,.9)); cursor: pointer; animation: rot 4s linear infinite; }
        @keyframes rot { to { transform: rotate(1turn); } }
</style>

<div class="bgBox">
        <img class="b-img" src="https://pic.imgdb.cn/item/628446160947543129449686.jpg" alt="" />
        <img class="s-img" src="https://pic.imgdb.cn/item/6284487209475431294b7ecf.jpg" alt="" />
        <div class="bgBox s-bg"></div>
</div>

<script>
let flag = true;
let sbg = document.querySelector('.s-bg');
let au = document.createElement('audio');
//Venice Beach
au.src = 'https://www.joy127.com/url/90418.mp3';
au.autoplay = flag;
au.loop = true;
au.style.display = 'none';
sbg.appendChild(au);
if(!flag) sbg.style.animationPlayState = 'paused';
sbg.onclick = function(){
        flag ? (au.pause(),this.style.animationPlayState='paused',flag=false) : (au.play(),this.style.animationPlayState='running',flag=true);
}
</script>
页: 1 [2]
查看完整版本: 闭幕式的这8个瞬间,中国给全世界的浪漫!震撼,惊喜,无与伦比