《我的天空(Live)》-NEXT组合、新生力量音浪团 TO:马黑黑
本帖最后由 加林森 于 2022-4-19 23:03 编辑 <br /><br /><div style="LEFT: 0px; WIDTH: 750px; POSITION: relative; TOP: 60px"><div style="float:left;border:solid 1px 000;"><img src="https://pic.imgdb.cn/item/625ec856239250f7c54dac8c.gif"></div>
<br><br><br><br><br><style>
.ball {
margin: auto;
margin-top: 80px;
width: 100px;
height: 100px;
background: olive linear-gradient(135deg,rgba(0,250,0,.85),rgba(30,250,60,.95));
position: relative;
border-radius: 50%;
filter: drop-shadow(2px 2px 6px rgba(0,0,0,.7));
transform: skew(2deg);
}
.ball::before, .ball::after {
content: '';
position: absolute;
border: 10px solid rgba(0,0,0,.45);
border-radius: 50%;
border-color: green lightgreen green darkgreen;
opacity: .55;
}
.ball::before { left: -5px; top: -5px; right: -5px; bottom: -5px; animation: rot 4s linear infinite; }
.ball::after { left: -10px; top: -10px; right: -10px; bottom: -10px;animation: rot 12s linear infinite; }
.ball div {
position: absolute;
left: 0; top: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 35% 40%,rgba(255,255,255,.75),rgba(0,0,0,.15));
border-radius: 50%;
}
@keyframes rot { to { transform: rotate(1turn); } }
</style>
<div class="ball">
<div></div>
</div>
<script>
let flag = true;
let ball = document.querySelector(".ball");
let au = document.createElement("audio");
au.src = "http://www.kumeiwp.com/sub/filestores/2022/04/18/89c49eabb7663320177d49716e7c4300.mp3";
au.autoplay = flag;
au.loop= true;
au.style.display = "none"
ball.appendChild(au);
ball.onclick = function(){
if(flag) {
Array.from(this.children).forEach(function(item){item.style.animationPlayState = "paused"; });
au.pause();
flag = false;
} else {
Array.from(this.children).forEach(function(item){item.style.animationPlayState = "running"; });
au.play();
flag = true;
}
}
</script>
@马黑黑 刚才那个我给删了,现在重新补起。
<style>
.txtBox {
margin: auto;
padding: 0 8px;
width: 400px;
height: 520px;
background-image: linear-gradient(#fff 25px, #ed8181db 0);
background-size: 26px 26px;
font: 14px / 26px Sans-serif;
}
</style>
<div class="txtBox">老黑晚上好。我刚才的帖子由于代码出了问题,我只有把帖子删了,不然会影响论坛的运作。我特别告知你。对不起你的回帖了。</div> 加林森 发表于 2022-4-19 23:00
.txtBox {
margin: auto;
padding: 0 8px;
{:5_108:} 队长的动图里加上这个按钮,还挺好看的,真棒{:4_187:} 马黑黑 发表于 2022-4-19 23:50
老黑上午好! 红影 发表于 2022-4-20 07:04
队长的动图里加上这个按钮,还挺好看的,真棒
在做实验,看来是成功了。谢谢红影支持!{:4_204:} 加林森 发表于 2022-4-20 09:23
在做实验,看来是成功了。谢谢红影支持!
是啊,真不错呢。{:4_204:} 好听好看 队长真棒! 小按钮加的漂亮! 赞~~~~~~~~~~
{:4_204:}{:4_199:} 红影 发表于 2022-4-20 19:57
是啊,真不错呢。
嗯嗯。 大猫咪 发表于 2022-4-20 20:21
好听好看 队长真棒! 小按钮加的漂亮! 赞~~~~~~~~~~
猫猫晚上好。{:4_204:}{:4_190:} 红影 发表于 2022-4-20 19:57
是啊,真不错呢。
谢谢红影。{:4_204:}
页:
[1]