加林森 发表于 2022-3-16 11:33
我全部制作成了浅色调的了。
我知道,看到了,非常不错的
本帖最后由 加林森 于 2022-5-18 12:42 编辑 <br /><br />马黑黑 发表于 2022-3-16 11:34
我知道,看到了,非常不错的
我这会准备去修改另外两个帖的播放器,好像有点问题了。
<style>
.spiBox {
top:120px;left:-242px;
position: relative;
width: 1080px;
height: 675px;
background: #FFF url('https://pic.imgdb.cn/item/628465140947543129b00dc4.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: 338px;
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: 588px;
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 50s 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/01/17/4622aa70fa2b5a63673c487afc51be97.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-3-16 11:35
我这会准备去修改另外两个帖的播放器,好像有点问题了。
好的,悠着点
马黑黑 发表于 2022-3-16 11:42
好的,悠着点
好的好的。
加林森 发表于 2022-3-16 11:49
好的好的。
上手了
马黑黑 发表于 2022-3-16 11:49
上手了
嗯,知道该怎么调整了。
加林森 发表于 2022-3-16 12:09
嗯,知道该怎么调整了。
付出总是有回报的
马黑黑 发表于 2022-3-16 12:30
付出总是有回报的
是啊,感到很开心。
加林森 发表于 2022-3-16 11:33
我全部制作成了浅色调的了。
怎么多出一个边啊,还有,图片还是失真了,把黛玉都给弄胖了{:4_173:}
加林森 发表于 2022-3-16 12:42
是啊,感到很开心。
{:4_204:}
马黑黑 发表于 2022-3-16 12:53
{:4_191:}
红影 发表于 2022-3-16 12:45
怎么多出一个边啊,还有,图片还是失真了,把黛玉都给弄胖了
这个边是滑动的空隙啊。
加林森 发表于 2022-3-16 11:32
樵歌中午好!
中午喝没{:4_176:}
樵歌 发表于 2022-3-16 13:11
中午喝没
今天没有,有点事情去处理,已经完成了。
加林森 发表于 2022-3-16 13:02
这个边是滑动的空隙啊。
好像是图片本身的吧。
红影 发表于 2022-3-16 13:36
好像是图片本身的吧。
图片是我制作过的。
樵歌 发表于 2022-3-16 13:11
中午喝没
樵歌快去收我送你的礼,就是你发给我要查找的音乐里面的一首纯音乐。
加林森 发表于 2022-3-16 13:37
图片是我制作过的。
嗯,原来是加出来的框。
红影 发表于 2022-3-16 14:30
嗯,原来是加出来的框。
嗯嗯,是的。
加林森 发表于 2022-3-16 14:33
嗯嗯,是的。
还是没框的好,更自然。