本帖最后由 加林森 于 2022-6-4 22:02 编辑 <br /><br />红影 发表于 2022-3-8 22:00
不破不立
你很调皮啊。。。。
<style>
.outer { left: -214px; width: 1024px; height: 682px; box-shadow: 2px 2px 4px #333; background: teal url('https://pic.imgdb.cn/item/629b65040947543129aedac1.jpg') no-repeat; position: relative; }
.ele1 { position: absolute; left: 160px; top: 60px; width: 100px; height: 100px; border-radius: 50%;background: #ff8c31 linear-gradient(transparent 49%,rgba(255,0,0,.65) 50%,transparent 0) no-repeat; background-size: 0% 100%; box-shadow: 5px 5px 30px 0 gray; cursor:pointer; }
.ele1::before, .ele1::after { position: absolute; content: ''; width: inherit; height: inherit; border-radius: inherit; }
.ele1::before { background: linear-gradient(transparent,rgba(0,0,0,0)); animation: flash 1s linear infinite; }
.ele1::after { background: radial-gradient(circle at 30% 30%,transparent,rgba(0,255,0,.25)); }
@keyframes flash { to { background: linear-gradient(transparent,rgba(0,0,0,.6)); } }
</style>
<div class="outer">
<div class="ele1"></div>
</div>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=1950923824.mp3" autoplay="autoplay" loop="loop"></audio>
<script>
let ele1 = document.querySelector('.ele1'), aud = document.querySelector('#aud');
ele1.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('timeupdate',() => ele1.style.backgroundSize = 100 * aud.currentTime / aud.duration + '% 100%');
</script>
加林森 发表于 2022-3-8 22:56
你很调皮啊。。。。
调皮真迹队长有学问{:4_173:}
红影 发表于 2022-3-8 23:02
调皮真迹队长有学问
哈哈哈,真调皮。
加林森 发表于 2022-3-8 23:04
哈哈哈,真调皮。
发现我打错字了,真迹==怎及{:4_173:}
红影 发表于 2022-3-9 10:52
发现我打错字了,真迹==怎及
可意会的。{:4_189:}
加林森 发表于 2022-3-9 11:16
可意会的。
总错字,我对自己也是服了{:4_173:}
红影 发表于 2022-3-9 13:15
总错字,我对自己也是服了
没有关系的。{:4_189:}