加林森 发表于 2022-5-14 11:33

《心情不错》-- 孙悦 TO:大猫咪

本帖最后由 加林森 于 2022-5-14 11:45 编辑 <br /><br /><style>
.spiBox {
   top:120px;left:-242px;
   position: relative;
   width: 1080px;
   height: 641px;
   background: #FFF url('https://pic.imgdb.cn/item/627f215109475431298cc65e.jpg') no-repeat center/cover;
   box-shadow: 4px 4px 5px #888;
   border-radius:12px;
}
.ball { /* 球体 */
      left:200px;top: 180px; width: 60px; height: 60px;
      background: Blue linear-gradient(135deg,rgba(65,105,225,.85),rgba(100,149,237,.95));
      position: absolute; border-radius: 50%;
      filter: drop-shadow(2px 2px 6px rgba(0,0,0,.7));
      transform: skew(2deg); cursor: pointer;
}
.ball::before { content: ''; position: absolute; } /* 伪元素:修饰 */
.ball::before { /* 伪元素一:高亮 */
      left: 0; top: 0; width: 100%; height: 100%; border-radius: 50%;
      background: radial-gradient(circle at 35% 40%,rgba(255,255,255,.75),rgba(0,0,0,.15));
}

.ball div { /* 子元素共2个:动画 */
      position: absolute; border: 8px solid rgba(0,0,0,.45); border-radius: 50%;
      border-color: #4682B4 #6495ED #4682B4 #6495ED;opacity: .55;
}
.ball div:nth-child(1) { left: -8px; top: -8px; right: -8px; bottom: -8px; animation: rot 4s linear infinite;}
.ball div:nth-child(2) { left: -16px; top: -16px; right: -16px; bottom: -16px;animation: rot 12s linear infinite; }
@keyframes rot { to { transform: rotate(1turn); } } /* 动画 转圈 */
.spiBox img {
      position: absolute;
      width: 139px;
      height: 108px;
      top: 40%;
      right: 0px;
      animation: walk 42s linear infinite;
}
@keyframes walk {
      0% { transform: rotate(0deg); right: 300px;top:330px; }
      10% { transform: rotate(0deg); right: 470px;top:310px; }
      20% { transform: rotate(0deg); right: 640px;top:290px; }
      30% { transform: rotate(0deg); right: 810px;top:290px; }
      40% { transform: rotate(0deg); right: 980px;top:310px; }
      50%{ transform: rotateY(180deg); right: 1000px;top:330px; }
      60%{ transform: rotateY(180deg); right: 830px;top:350px; }
      70%{ transform: rotateY(180deg); right: 660px;top:370px; }
      80%{ transform: rotateY(180deg); right: 490px;top:370px; }
      90%{ transform: rotateY(180deg); right: 320px;top:350px; }
      100%{ transform: rotateY(360deg); right: 300px;top:330px; }
}
.xiewen {/* 斜纹文本 */
      position: absolute;left:280px;top: -10px;
      width: 660px;
      height: 200px;
      line-height: 200px;
      font-family: '微软雅黑', '宋体';
      font-size: 4.2rem;
      font-weight: 900;
      text-align: center;
      background: darkgreen linear-gradient(45deg, transparent 45%, #eee 45%, #ccc 55%, transparent 0);
      background-size: 4px 4px;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      -webkit-text-stroke: 2px #111;
      animation: wenzi 4s linear infinite alternate;
}
@keyframes wenzi { 0%{opacity: 0.8;} 100% { opacity: 0.3; } }

/* 文字走马灯 */
.txtFly {
      position: absolute;
      --w: 300px;
      width: var(--w);
      left: 550px;
      top: 566px;
      overflow: hidden;
}
.txtFly div {
       word-break: keep-all;
       white-space: nowrap;
       font: normal 22px /24px '楷体','微软雅黑';
       color:#ccff99; text-shadow: 0 0 2px #ff66ff;
       animation: fly 32s linearinfinite;
}
/* 走马灯动画 */
@keyframes fly {
                from { transform: translateX(100%); }
                to { transform: translateX(calc(-120% - var(--w))); }
      }
</style>
<div class="spiBox">
      <img src="https://pic.imgdb.cn/item/6247dcc127f86abb2a49e093.gif" alt="" />
<div class="ball">
      <div></div>
      <div></div>
</div>
<div class="xiewen">心情不错</div>
<div class="txtFly" >
   <div>心情不错--孙悦 这一年总的说来高兴的事挺多

家人不错 朋友不错 自己也不错

看着日历总不忍心把最后一页翻过

因为要告别快乐的一年都有点舍不得
                       。。。。。。</div>
</div></div><br><br><br><br><br><br><br><br><br><br><br><br>

<script>
let flag = true;
let ball = document.querySelector(".ball");
let au = document.createElement("audio");
au.src = "http://www.kumeiwp.com/sub/filestores/2022/03/13/f088571586e027f5d98fc83817dd9f53.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>

大猫咪 发表于 2022-5-14 11:42

制作真漂亮! 童话般的画面,和歌曲融合的真好, 队长好分享!

{:4_187:}{:4_199:}

加林森 发表于 2022-5-14 11:45

大猫咪 发表于 2022-5-14 11:42
制作真漂亮! 童话般的画面,和歌曲融合的真好, 队长好分享!

准备送你的。一看见一只小猫,就想起你来了。{:4_189:}

加林森 发表于 2022-5-14 11:47

大猫咪 发表于 2022-5-14 11:42
制作真漂亮! 童话般的画面,和歌曲融合的真好, 队长好分享!

现在正式送你了。@大猫咪

大猫咪 发表于 2022-5-14 11:48

加林森 发表于 2022-5-14 11:45
准备送你的。一看见一只小猫,就想起你来了。

{:4_189:}谢谢队长,{:4_204:}{:4_179:}

大猫咪 发表于 2022-5-14 11:50

加林森 发表于 2022-5-14 11:47
现在正式送你了。@大猫咪

队长越做越有感觉了, {:4_187:} 听歌看图心情一下大好, {:5_106:}{:4_179:}

加林森 发表于 2022-5-14 11:56

大猫咪 发表于 2022-5-14 11:48
谢谢队长,

猫猫开心。{:4_204:}{:4_179:}

大猫咪 发表于 2022-5-14 11:57

加林森 发表于 2022-5-14 11:56
猫猫开心。

{:4_204:}{:4_179:}{:4_191:}

加林森 发表于 2022-5-14 11:57

大猫咪 发表于 2022-5-14 11:50
队长越做越有感觉了,听歌看图心情一下大好,

就是,先有感觉了才能制作更加好的作品。{:4_204:}{:4_179:}

红影 发表于 2022-5-14 12:09

很棒的设计,欣赏队长好帖{:4_187:}

加林森 发表于 2022-5-14 12:14

大猫咪 发表于 2022-5-14 11:57


{:4_204:}{:4_179:}{:4_191:}

加林森 发表于 2022-5-14 12:14

红影 发表于 2022-5-14 12:09
很棒的设计,欣赏队长好帖

谢谢红影鼓励!{:4_204:}

小辣椒 发表于 2022-5-14 12:58

队长这个就是那天的凡人歌的代码,我今天就这个代码做了一个送你,马上去发

加林森 发表于 2022-5-14 13:13

小辣椒 发表于 2022-5-14 12:58
队长这个就是那天的凡人歌的代码,我今天就这个代码做了一个送你,马上去发

谢谢小辣椒。{:4_204:}

小辣椒 发表于 2022-5-14 15:12

队长的滚动字效果,发现滚动字速度和文字多少也是有关系的,你的就黑黑源码的32.我现在改了60了,我文字少

梦油 发表于 2022-5-14 16:37

分享《心情不错》,祝愿加林森朋友永远开心,心情永远不错。

加林森 发表于 2022-5-14 17:00

小辣椒 发表于 2022-5-14 15:12
队长的滚动字效果,发现滚动字速度和文字多少也是有关系的,你的就黑黑源码的32.我现在改了60了,我文字少
嗯嗯,明白的。

加林森 发表于 2022-5-14 17:01

梦油 发表于 2022-5-14 16:37
分享《心情不错》,祝愿加林森朋友永远开心,心情永远不错。

是的,每天开开心心多好啊。

梦油 发表于 2022-5-14 18:13

加林森 发表于 2022-5-14 17:01
是的,每天开开心心多好啊。

你为朋友们的开心提供了丰富的资源。

加林森 发表于 2022-5-14 18:21

梦油 发表于 2022-5-14 18:13
你为朋友们的开心提供了丰富的资源。

大家都开心了,我就更加开心了。
页: [1] 2 3
查看完整版本: 《心情不错》-- 孙悦 TO:大猫咪