预览
![图片[1]-子比主题美化 – 顶部幻灯片循环波浪效果-至简笔记](https://www.ilko.cn/wp-content/uploads/2026/06/image-1024x309.png)
下面代码放入WordPress后台-子比主题设置-全局-自定义代码-自定义css代码中
.parallax {
fill: var(--body-bg-color);
}
.parallax > use {
animation: move-forever 30s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
animation-delay: -2s;
animation-duration: 7s;
opacity: 0.5;
}
.parallax > use:nth-child(2) {
animation-delay: -3s;
animation-duration: 10s;
opacity: 0.6;
}
.parallax > use:nth-child(3) {
animation-delay: -4s;
animation-duration: 13s;
opacity: 0.7;
}
.parallax > use:nth-child(4) {
animation-delay: -5s;
animation-duration: 20s;
opacity: 1;
}
@keyframes move-forever {
0% {
transform: translate3d(-90px, 0, 0);
}
100% {
transform: translate3d(85px, 0, 0);
}
}
下面js代码放入自定义代码中的自定义底部HTML
<script src="https://api.wvn.cn/s/cdnjs/zibi/波浪线动态/js/tengfei_slide_wave.js"></script>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END














暂无评论内容