黑黑说我可以邀请你跳个舞吗(空中散步效果)
<style>
#papa { left: -344px; width: 1283px; height: 729px;top: 150px;box-shadow: 4px 4px 30px #000; border-radius: 6px; overflow: hidden; position: relative; }
#mama {position: absolute; width: inherit; height: inherit; left: 0; top: -729px; background: #ccc url('https://wj.zp68.com/lxx/yunhua/2022/06/23/dIF.gif') no-repeat center / cover; }
#mama input { border: none; outline: none; opacity: .75; cursor: pointer; }
#mama p { margin: 0; padding: 0; }
.playbox { position: absolute; left: 800px; top: 600px; padding: 10px; font: normal 1em sans-serif; color: #eee; background: rgba(255,255,255,.2); border-radius: 8px; backdrop-filter: blur(1px); overflow: hidden; box-shadow: 1px 1px 2px rgba(0,0,0,.15); z-index: 100; }
#btnplay { width: 30px; height: 30px; border-radius: 50%; }
#btnplay:hover { background: #aaa; color: #ff0000; }
#papa > img { position: absolute; border: none; outline: none; }
#ufo2 { left: 0; top: 0; width: 200px; height: 200px; left: 350px; transition: all 2s; }
#tang1 { top: 340px; width: 200px; height: 354px; left: 300px; opacity: .2; cursor: pointer; }
@keyframes up { to { transform: translateY(-700px); } }
@keyframes down { to { top: 0px; } }
</style>
<div id="papa">
<img id="ufo2" src="https://pic.imgdb.cn/item/62d1b84ff54cd3f937fb12c4.png" alt="" />
<img id="tang1" src="https://pic.imgdb.cn/item/62d1b84ff54cd3f937fb12cd.png" alt="" />
<div id="mama">
<div class="playbox">
<p id="geci" style="font-size: 1.2em; text-shadow: 1px 1px 1px #222">stand by ... </p>
<p style="display: flex; align-items: center; gap: 4px; margin-top: 10px;">
<input id="btnplay" type="button" value=">" />
<input id="slider" type="range" min="0" max="100" value="0" />
<span id="per">0%</span>
</p>
</div>
</div>
</div>
<audio id="aud" src="https://wj.zp68.com/lxx/yunhua/2022/06/23/qnw.mp3" loop="loop"></audio>
<script>
let lrcAr = [ ['0.00','清舟&黑黑跳支探戈 - 情难忘'], ['120.00','谢谢欣赏'] ];
let num = (min, max) => Math.floor(Math.random() * (max-min+1)) + min;
tang1.style.left = num(0,924) + 'px';
ufo2.style.left = num(0,924) + 'px';
tang1.onclick = () => {
tang1.style.opacity = 1;
ufo2.style.left = tang1.offsetLeft+ 30 + 'px';
ufo2.style.top = tang1.offsetTop - 60 + 'px';
setTimeout(() => {
ufo2.style.animation = tang1.style.animation = 'up 4s forwards';
},2200);
setTimeout(() => {
mama.style.animation = 'down 4s forwards';
aud.play();
},4300);
}
slider.onmousedown = () => aud.pause();
slider.onchange = () => { aud.currentTime = slider.value * aud.duration / 100; aud.play(); }
btnplay.onclick = () => aud.paused ? aud.play() : aud.pause();
aud.addEventListener('playing', () => btnplay.value = '||');
aud.addEventListener('pause', () => btnplay.value = '>');
aud.addEventListener('timeupdate', () => {
let prog = 100 * aud.currentTime / aud.duration;
slider.value = prog;
per.innerText = toMin(aud.currentTime) + ' | ' + toMin(aud.duration);
for(j=0; j<lrcAr.length; j++){
if(aud.currentTime >= lrcAr) geci.innerHTML = lrcAr;
}
});
let toMin = (val) => {
if(!val) return '0:0';
val = Math.floor(val);
return parseInt(val / 60) + ':' +parseFloat(val % 60);
}
</script>
<br><br><br><br><br><br><br><br> @马黑黑
黑黑这个是求速度了{:4_170:} 跳个舞还要升天,累不累人 今年特别热,今天得出去给老人购物,家里的吃的用的都得准备充足,休息天就忙这些了,所以匆匆忙忙的完成,马上得下了 黑黑邀请清舟跳个舞,清舟立马同意了,大家一起欣赏。。。。 小辣椒,厉害了。把清舟拉来与黑黑一起跳舞(((((ી(・◡・)ʃ)))))。{:4_199:} 加林森 发表于 2022-7-16 10:58
小辣椒,厉害了。把清舟拉来与黑黑一起跳舞(((((ી(・◡・)ʃ)))))。
队长我作业完成先下了,晚上再上来 小辣椒 发表于 2022-7-16 10:55
黑黑邀请清舟跳个舞,清舟立马同意了,大家一起欣赏。。。。
我看到的是清舟下来,直接把黑黑拖到舞池里去了{:4_173:} 别看之前高冷,进到舞池后的黑黑跳得好嗨啊{:4_170:} 小辣椒 发表于 2022-7-16 11:00
队长我作业完成先下了,晚上再上来
好的好的。 真有绅士风度,俊男靓女跳一曲。
可惜,我没分了!
{:4_201:} 小辣椒这创意真好,制作也很美妙,黑黑老师有点太严肃了{:4_205:} 马黑黑 发表于 2022-7-16 10:53
跳个舞还要升天,累不累人
不累啊,跳舞是最快乐的活动{:4_170:} 红影 发表于 2022-7-16 11:05
我看到的是清舟下来,直接把黑黑拖到舞池里去了
清舟是跳舞高手的@绿叶清舟 直接拎走的啊{:4_189:}谢谢辣椒 小辣椒 发表于 2022-7-16 22:07
不累啊,跳舞是最快乐的活动
可是我不会呀{:4_170:} 红影 发表于 2022-7-16 11:06
别看之前高冷,进到舞池后的黑黑跳得好嗨啊
就是黑黑跳舞的样子有点凶{:4_189:} 加林森 发表于 2022-7-16 11:08
好的好的。
队长我准备下了,10点多了 梦油 发表于 2022-7-16 13:36
真有绅士风度,俊男靓女跳一曲。
梦油开心玩,不用加分的 千羽 发表于 2022-7-16 16:12
小辣椒这创意真好,制作也很美妙,黑黑老师有点太严肃了
千羽~~黑黑不是严肃,是有点凶,清舟都给他拉痛的,不信你去问清舟{:4_170:}
页:
[1]
2