加林森 发表于 2022-5-2 13:34

本帖最后由 加林森 于 2022-6-7 19:57 编辑 <br /><br />梦油 发表于 2022-5-2 13:33
下午经常欣赏到你的好作品。
谢谢你的支持。这个作品是失败了的,准备重新修改的。
<style>

.outer { left: -302px; width: 1200px; height: 713px; box-shadow: 2px 2px 4px #333; background: teal url('https://pic.imgdb.cn/item/629f3cef0947543129dd3a32.jpg') no-repeat; position: relative; }
.ele1 { position: absolute; left: 612px; top: 200px; width: 43px; height: 43px; border-radius: 50%;background:#ff7500 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://www.joy127.com/url/81525.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-5-2 13:53

加林森 发表于 2022-5-2 13:34
谢谢你的支持。这个作品是失败了的,准备重新修改的。

失败是成功之母,这是每个人都有的经历。

加林森 发表于 2022-5-2 18:05

梦油 发表于 2022-5-2 13:53
失败是成功之母,这是每个人都有的经历。

说得好!

梦油 发表于 2022-5-2 20:45

加林森 发表于 2022-5-2 18:05
说得好!

成功是踩着失败的肩膀走出来的。

加林森 发表于 2022-5-2 20:46

梦油 发表于 2022-5-2 20:45
成功是踩着失败的肩膀走出来的。

嗯嗯。
页: 1 [2]
查看完整版本: 《平湖秋月》-- 付娜