琵琶女
本帖最后由 有声有色 于 2025-9-14 15:00 编辑 <br /><br /><style type="text/css">/* 父框盒子 */
#xq { position: relative; left:-1560px; top:120px; width: 2660px; height:800px; background-image: url('https://pic1.imgdb.cn/item/66e53816d9c307b7e9c00e82.gif'); box-shadow: 4px 4px 5px #888; background-size: 2400px 800px; border-radius:12px; background-position: 1200px 0;animation: mv 28s linear infinite; }
@keyframes mv { from { background-position: 1200px 0; } to { background-position: 0 0; } }
/* 摇摆字 */
body { overflow-x: hidden; } /*禁用横向滚动条 */
#baiBox {
margin: auto;
width: 400px;
text-align: center;
font-size: 1.5rem;
font-weight: bold;
color:#DF7401;
transform-origin: top;
animation: yao 0.8s linear infinite alternate;
}
/* 动画 */
@keyframes yao {
from{transform: perspective(800px) rotatex(30deg); }
to { transform: perspective(800px) rotatex(-30deg); }
}
/* 轱辘诗 */
.hxBox { position: absolute; left:220px; top:150px; width: 160px; height: 160px; font-family: '楷体','微软雅黑'; font-size: 24px;transform-origin: 50 50; animation: go 24s linear infinite;}
@keyframes go { to { transform: rotate(-360deg);} }
.hxBox path { fill: none; }
.hxBox svg { display: block; overflow: visible; }
</style>
<div id="xq" >
<div id="baiBox" style="position: absolute; left:750px; top: 45px; "><font color="DarkOrange"><font size="4">◇◇◇烟雨草堂作品◇◇◇</font></font></font></div>
<div class="hxBox">
<svg viewBox="0 0 100 100">
<path d="M 0, 50 a 50, 50 0 1, 1 0, 1 z" id="yuan" />
<text stroke="#B40431">
<textPath xlink:href="#yuan">
</textPath>
</text>
</svg>
</div>
<!-- 控制按钮应是父盒子的第一代子元素 -->
<div style="position:absolute; width:50px; left: 600px; top:calc(100% - 140px); text-align:center;">
<button id="picBtn" class="picBtn"></button>
</div>
</div>
<!-- 因为播放器不要界面,无需放在帖子父盒子内 -->
<audio id="music" autoplay="autoplay" loop="loop" src="https://link.hhtjim.com/kw/216495833.mp3" ></audio>
<script language="javascript">
var mu = document.getElementById('music');
var btn = document.getElementById('picBtn');
btn.onclick = function(){
mu.paused ? (mu.play(), btn.style.background="url('http://image.hnol.net/c/2022-02/24/15/202202241559481151-5087368.gif')") : (mu.pause(), btn.style.background="url('http://image.hnol.net/c/2022-02/24/16/20220224160408591-5087368.gif')");
}
mu.addEventListener("ended", function(){
btn.style.background="url('http://image.hnol.net/c/2022-02/24/15/202202241559481151-5087368.gif')";
});
</script>
<style>
.mvBox {
position: relative;
width: 1800px;
height: 100px;
left:-50px;
top:-50px;
color:#DF7401;
line-height: 40px;
font-size: 15px;
animation: mq linear 10s infinite;
}
@keyframes mq {
from { transform: translateX(200px); }
to { transform: translateX(0); }
}
</style>
电脑前看不到。 沐风 发表于 2022-8-18 12:41
电脑前看不到。
换个浏览器试试看 有声有色 发表于 2022-8-18 13:10
换个浏览器试试看
好吧。{:4_171:} 漂亮的图片滚动,欣赏有声有色漂亮的制作。貌似没法评分呢{:4_187:} 红影 发表于 2022-8-18 16:14
漂亮的图片滚动,欣赏有声有色漂亮的制作。貌似没法评分呢
谢谢不用了 很漂亮的的滾动图图!{:4_199:} 樵歌 发表于 2022-8-18 16:44
很漂亮的的滾动图图!
谢谢鼓励
页:
[1]