加林森 发表于 2022-3-16 14:40

本帖最后由 加林森 于 2022-5-18 11:09 编辑 <br /><br />红影 发表于 2022-3-16 14:35
还是没框的好,更自然。
这个可以另外去找一个图片来修改的。

<style type="text/css">
.paBox { /* 父框 */
      margin: 10px auto;
      width: 1024px;
      height: 681px;
      position: relative;
      background: #000 url('https://pic.imgdb.cn/item/62845fef09475431299e962b.jpg"') no-repeat;
      left: -214px;
}
/* 父框和 .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: 64px; height: 64px;
      line-height: 64px; 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:620px; 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/04/09/60e5318711f1001068a7f25eda6ed0ec.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-3-16 18:37

加林森 发表于 2022-3-16 14:40
这个可以另外去找一个图片来修改的。

嗯嗯。

加林森 发表于 2022-3-16 18:37

红影 发表于 2022-3-16 18:37
嗯嗯。

吃晚饭没?

樵歌 发表于 2022-3-16 19:57

加林森 发表于 2022-3-16 13:13
今天没有,有点事情去处理,已经完成了。

那晚上总喝了吧{:4_176:}

加林森 发表于 2022-3-16 20:12

樵歌 发表于 2022-3-16 19:57
那晚上总喝了吧

喝了喝了。{:4_176:}

加林森 发表于 2022-3-16 20:13

红影 发表于 2022-3-16 18:37
嗯嗯。

现在我已经换了一张图片并制作出来了。

红影 发表于 2022-3-17 15:55

加林森 发表于 2022-3-16 20:13
现在我已经换了一张图片并制作出来了。

嗯嗯,看到了,现在漂亮多了{:4_187:}

加林森 发表于 2022-3-17 16:43

红影 发表于 2022-3-17 15:55
嗯嗯,看到了,现在漂亮多了

嗯嗯,谢谢红影支持!{:4_187:}

樵歌 发表于 2022-3-18 10:58

加林森 发表于 2022-3-16 20:12
喝了喝了。

中午快了。{:4_176:}

加林森 发表于 2022-3-18 12:33

樵歌 发表于 2022-3-18 10:58
中午快了。

好的好的,喝起{:4_176:}
页: 1 2 [3]
查看完整版本: 《葬花吟》 -- 箫、笛子独奏:戴亚