diff --git a/css/index.css b/css/index.css index 0fc2d20..6ca3016 100644 --- a/css/index.css +++ b/css/index.css @@ -343,7 +343,7 @@ box-shadow: 0 8px 32px rgba(15, 23, 42, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05); - border-radius: 20px; + border-radius: 0; /* 移除圆角 */ } .banner .banner-s .banner-list { @@ -374,9 +374,9 @@ } .banner-s .banner-list .banner-item:hover { - background: rgba(56, 189, 248, 0.08); + background: transparent; /* 移除毛玻璃背景 */ transform: translateY(-8px); - box-shadow: 0 12px 28px rgba(56, 189, 248, 0.15); + box-shadow: none; /* 移除阴影 */ } .banner-s .banner-list .banner-item:hover h5 { diff --git a/js/tools.js b/js/tools.js index 0a63546..72a2a12 100644 --- a/js/tools.js +++ b/js/tools.js @@ -20,7 +20,11 @@ $(function () { }); const mySwiper = new Swiper(".swiper", { loop: true, // 循环模式选项 - autoplay: true, + autoplay: { + delay: 5000, // 5秒自动切换 + disableOnInteraction: false, // 用户操作后继续自动播放 + }, + speed: 800, // 切换速度 // 如果需要分页器 pagination: { el: ".swiper-pagination",