队长是最优秀的学生
还不是啊。小辣椒与老兄才是。
<style type="text/css">
.paBox { /* 父框 */
margin: 10px auto;
width: 1000px;
height: 562px;
position: relative;
background: #000 url('https://pic.imgdb.cn/item/6278eb920947543129554309.jpg') no-repeat;
left: -210px;
}
/* 父框和 .soBox 的伪元素共同样式 */
.paBox::before, .paBox::after, .soBox::before, .soBox::after {
content: "";
position: absolute;
width: 500px; height: 2px;
background: silver;
left: 300px; top: 230px;
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); } }
/*旋转按钮*/
.roBox32 {
margin: 10px;
position: relative;
width: 32px; height: 32px;
line-height: 32px; font-size: 12px;
background: linear-gradient(blue,gray,red);
outline:none;
color: white;
border-radius: 50%;
text-align: center;
box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.25);
cursor: pointer;
animation: rol linear 2s infinite;
}
.roBox32:hover { opacity: 0.8; }
.roBox32:active { opacity: 1; }
@keyframes rol { to { transform:rotate(360deg); } }
</style>
<div class="paBox">
<div class="soBox"></div>
<p style="position: absolute; left:240px; top:480px; color:#FFA500;"><marqueescrollamount="3" direction="left" >亲爱的你怎么不在我身边-李梦瑶</marquee></p>
<!-- 按钮 -->
<div id="roBox" class="roBox32" style="left:10%;top:88%;">●</div>
</div>
<audio id="ymusic" src="http://www.kumeiwp.com/sub/filestores/2022/05/08/49da79018d84bfbadf58c9ffdd888de1.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>
樵歌 发表于 2022-1-9 10:39
只能说太遗憾了。
想看美女我另外送你。{:4_170:} 加林森 发表于 2022-1-9 10:48
谢谢老黑!
谢茶。不客气的。 马黑黑 发表于 2022-1-9 10:59
谢茶。不客气的。
好的好的 加林森 发表于 2022-1-9 11:04
好的好的
{:4_181:} 马黑黑 发表于 2022-1-9 11:29
{:4_174:} 加林森 发表于 2022-1-9 10:49
还不是啊。小辣椒与老兄才是。
你们都是最好的学生,就我落后了{:4_173:} 红影 发表于 2022-1-9 17:46
你们都是最好的学生,就我落后了
不对,你也是秒秒钟就可以制作的嘛。{:4_189:}
页:
1
[2]