《凡人歌》--五月天&萧敬腾 TO:梦油
本帖最后由 加林森 于 2022-5-3 09:53 编辑 <br /><br /><style>.spiBox {
top:120px;left:-302px;
position: relative;
width: 1200px;
height: 675px;
background: #FFF url('https://pic.imgdb.cn/item/626fdee8239250f7c5a94bf0.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: 450px;
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(-860% - 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 = "https://music.163.com/song/media/outer/url?id=108587.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> @梦油希望你喜欢! 欣赏队长漂亮的制作。队长收礼开心{:4_187:} 红影 发表于 2022-5-3 10:21
欣赏队长漂亮的制作。队长收礼开心
红影上午好。不是我收礼哦,是我送梦油的。{:4_170:} 加林森 发表于 2022-5-2 23:17
@梦油希望你喜欢!
谢谢,谢谢!谢谢加林森朋友!俺躺在安乐椅上,品着香浓的咖啡,欣赏着加林森朋友送来的佳作,嘿!那叫一个美!谢谢你啦,加林森朋友!
{:4_176:} 加林森 发表于 2022-5-3 10:28
红影上午好。不是我收礼哦,是我送梦油的。
谢谢,谢谢!俺收到了。现在正在欣赏第二遍呢。 梦油 发表于 2022-5-3 11:16
谢谢,谢谢!谢谢加林森朋友!俺躺在安乐椅上,品着香浓的咖啡,欣赏着加林森朋友送来的佳作,嘿!那叫一 ...
收礼开森,你喜欢就好!{:4_176:} 梦油 发表于 2022-5-3 11:18
谢谢,谢谢!俺收到了。现在正在欣赏第二遍呢。
嗯嗯,慢慢欣赏!{:4_190:} 队长好制作 制作真漂亮。永远的经典 队长用心之作,赞! 梦油兄收礼开心!!
{:4_204:}{:4_199:} 马黑黑 发表于 2022-5-3 11:51
队长好制作
谢谢老黑! 大猫咪 发表于 2022-5-3 12:20
制作真漂亮。永远的经典 队长用心之作,赞! 梦油兄收礼开心!!
谢谢猫猫支持!{:4_204:}{:4_190:} 加林森 发表于 2022-5-3 11:22
嗯嗯,慢慢欣赏!
你的制作水平可不低。 梦油 发表于 2022-5-3 14:39
你的制作水平可不低。
一般一般,世界第三。 加林森 发表于 2022-5-3 16:55
一般一般,世界第三。
哈哈哈!第三可不行啊 {:4_173:} 梦油 发表于 2022-5-3 17:57
哈哈哈!第三可不行啊
慢慢来,不急的。{:4_189:} 加林森 发表于 2022-5-3 18:08
慢慢来,不急的。
哈哈哈,不急,不急。 梦油 发表于 2022-5-3 20:08
哈哈哈,不急,不急。
就是就是。 加林森 发表于 2022-5-3 10:28
红影上午好。不是我收礼哦,是我送梦油的。
嗯嗯,打错名字了{:4_189:} 红影 发表于 2022-5-4 08:11
嗯嗯,打错名字了
嗯嗯,好玩。{:4_189:}
页:
[1]
2