加林森 发表于 2022-2-3 08:38

《新年好运都来到》(大年初三)

<iframe width="760" height="430"src="https://www.ixigua.com/iframe/7060254548786414084?amp;autoplay=true&disablePlaylist=true" frameborder="0" allowfullscreen="" style="margin: 10px auto; border-radius: 50px 50px 50px 50px;" referrerpolicy="unsafe-url"></iframe>
<p></p>


红影 发表于 2022-2-3 11:37

好听又好看,同祝大家初三快乐{:4_187:}

加林森 发表于 2022-2-3 11:39

本帖最后由 加林森 于 2022-5-30 13:11 编辑 <br /><br />红影 发表于 2022-2-3 11:37
好听又好看,同祝大家初三快乐
很喜庆的视频。红影中午好!{:4_187:}

<style>
.wrap {
      left: -20px;
      width: 800px; height: 463px;
      background: teal url('https://pic.imgdb.cn/item/62945118094754312999e333.jpg') no-repeat center/cover;
      position: relative;
}
.circle {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 80px; height: 80px;
      left: 10px; bottom: 10px;
      border: solid 6px transparent;
      border-radius: 50%;
      background-image: radial-gradient(ghostwhite, transparent), linear-gradient(120deg,tomato,green,red,gold);
      background-origin: border-box;
      background-clip: content-box, border-box;
      cursor: pointer;
      font: normal 14px sans-serif;
      position: absolute;
}
.circle::before { position: absolute; content: attr(data-per); bottom: 20%;}
.circle::after { position: absolute; content: ''; width: 10px; height: 10px; background: olive; border-radius: 50%; }
.hand {
      position: absolute; width: 2px; height: 50%;
      bottom: 50%; background: rgba(200,20,20,.45);
      transform-origin: bottom;
}
.wrap::before {
      content: '';
      position: absolute;
      width: 50%;
      height: 50%;
      background: url('https://pic.imgdb.cn/item/6235d74f5baa1a80ab9d74a0.gif') no-repeat

center/cover;
      opacity: .55;
      left:30px; top: 20px;
}
</style>

<div class="wrap">
      <div class="circle" data-per="0%">
                <div class="hand"></div>
      </div>
</div>
<audio id="aud" src="https://music.163.com/song/media/outer/url?id=566443168.mp3" autoplay="autoplay" loop="loop"></audio>

<script>
let circle = document.querySelector('.circle');
let hand = document.querySelector('.hand');
let aud = document.querySelector('#aud');
let current, task;

aud.addEventListener('timeupdate', function(){
      task = aud.duration;
      current = aud.currentTime;
      setProgress(task,current);
});

circle.onclick = () =>{ aud.paused ? aud.play() : aud.pause(); };

function setProgress(tt,cc) {
      if(tt <= 0 || cc <= 0) return false;
      let prog = 100 * cc / tt;
      hand.style.transform = `rotate(${360*prog/100}deg`;
      circle.setAttribute('data-per', prog.toFixed(2) + '%');
}
</script>

红影 发表于 2022-2-3 15:00

加林森 发表于 2022-2-3 11:39
很喜庆的视频。红影中午好!

祝福大家过年好{:4_187:}

加林森 发表于 2022-2-3 16:23

红影 发表于 2022-2-3 15:00
祝福大家过年好

必须的。
页: [1]
查看完整版本: 《新年好运都来到》(大年初三)