本帖最后由 加林森 于 2022-2-12 11:24 编辑 <br /><br />马黑黑 发表于 2021-11-22 23:17
有钱就有一切
真的假的?
<style type="text/css">
.paBox { /* 父框 */
margin: 10px auto;
width: 1024px;
height: 640px;
position: relative;
background: #000 url('https://pic.imgdb.cn/item/62067c132ab3f51d91b79166.jpg') no-repeat;
left: -240px;
top: 150px
}
/* 父框和 .soBox 的伪元素共同样式 */
//.paBox::before, .paBox::after, .soBox::before, .soBox::after {
//content: "";
//position: absolute;
//width: 300px; height: 2px;
//background: BlueViolet;
//left: 550px; top: 120px;
//opacity: 0.1;
//transform-origin: center center;
}
/* 父框和 .soBox 的伪元素各自的动画样式 */
.paBox::before { animation: fly 2s linear infinite alternate;}
.paBox::after { height: 4px; animation: fly 5s linear infinite;}
.soBox::before { animation: fly 3s linear infinite;}
.soBox::after { height: 5px; animation: fly 1s linear infinite alternate;}
@keyframes fly { 100% { transform: rotate(360deg); } }
/*旋转按钮*/
.roBox74 {
margin: 10px;
position: relative;
width: 74px; height: 74px;
line-height: 74px; font-size: 14px;
background: linear-gradient(Red,Pink,Indigo);
outline:none;
color: Indigo;
border-radius: 50%;
text-align: center;
box-shadow: 0px 0px 0px 2px rgba(0,0,0,0.45);
cursor: pointer;
animation: rol linear 2s infinite;
}
.roBox74:hover { opacity: 0.8; }
.roBox74:active { opacity: 1; }
@keyframes rol { to { transform:rotate(360deg); } }
</style>
<div class="paBox">
<div class="soBox"></div>
<p style="position: absolute; left:750px; top:500px; color: #ae0101;"><marqueescrollamount="4" direction="left" ><b><font face="微软雅黑" size="3">帖赠小辣椒 【分享好时光】</font></marquee></p>
<!-- 按钮 -->
<div id="roBox" class="roBox74" style="left:74.8%;top:55.9%;">●</div>
</div>
<audio id="ymusic" src="https://www.joy127.com/url/88629.mp3" autoplay="autoplay" loop="loop"></audio>
<script language="javascript">
var mu = document.getElementById('ymusic');
var roBtn = document.getElementById('roBox');
mu.autoplay ? roBtn.style.animationPlayState="running" : roBtn.style.animationPlayState="paused";
mu.addEventListener("ended", function(){ roBtn.style.animationPlayState="paused"; })
roBtn.onclick = function(){ mu.paused ? (mu.play(), roBtn.style.animationPlayState="running") : (mu.pause(), roBtn.style.animationPlayState="paused"); }
</script>
<br><br><br><br><br><br><br><br><br><br><br>
加林森 发表于 2021-11-22 23:23
真的假的?
你有钱看看
马黑黑 发表于 2021-11-23 07:18
你有钱看看
好的好的
加林森 发表于 2021-11-23 10:15
好的好的
甚好甚好
马黑黑 发表于 2021-11-23 12:11
甚好甚好
当然当然
加林森 发表于 2021-11-23 13:29
当然当然
https://dl4.weshineapp.com/gif/20210615/31d6d12776f7899a67c08969d7e1d79b.gif?f=micro_
马黑黑 发表于 2021-11-23 18:31
又来啊{:4_189:}