feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
@@ -126,36 +126,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 3. 文章封面轮播
|
||||
* ============================================================ */
|
||||
function initCoverSlider() {
|
||||
var container = document.querySelector('.single-cover-slider[data-swiper-config]');
|
||||
if (!container || typeof Swiper === 'undefined') return;
|
||||
|
||||
var config = {};
|
||||
try {
|
||||
config = JSON.parse(container.dataset.swiperConfig || '{}');
|
||||
} catch (e) {}
|
||||
|
||||
new Swiper(container, Object.assign({
|
||||
effect: 'fade',
|
||||
fadeEffect: { crossFade: true },
|
||||
loop: true,
|
||||
speed: 800,
|
||||
autoplay: { delay: 5000, disableOnInteraction: false },
|
||||
pagination: {
|
||||
el: '.single-cover-slider__pagination',
|
||||
type: 'bullets',
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
prevEl: '.single-cover-slider__prev',
|
||||
nextEl: '.single-cover-slider__next',
|
||||
},
|
||||
}, config));
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
* 5. 粘性元素 (Sticky)
|
||||
* ============================================================ */
|
||||
@@ -296,7 +266,6 @@
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
initTilt();
|
||||
initScrollAnimations();
|
||||
initCoverSlider();
|
||||
initRipple();
|
||||
initSticky();
|
||||
initParallax();
|
||||
|
||||
Reference in New Issue
Block a user