navigation | object | | Object with navigation parameters. For example:var mySwiper = new Swiper('.swiper-container', { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); |
{ |
nextEl | string / HTMLElement | null | String with CSS selector or HTML element of the element that will work like “next” button after click on it |
prevEl | string / HTMLElement | null | String with CSS selector or HTML element of the element that will work like “prev” button after click on it |
hideOnClick | boolean | false | Toggle navigation buttons visibility after click on Slider’s container |
disabledClass | string | ‘swiper-button-disabled’ | CSS class name added to navigation button when it becomes disabled |
hiddenClass | string | ‘swiper-button-hidden’ | CSS class name added to navigation button when it becomes hidden |
} |