Login With Github

Swiper API: Accessibility

Accessibility Parameters

Parameter Type Default Description
a11y object/boolean  

Object with a11y parameters or boolean true to enable with default settings. For example:

var mySwiper = new Swiper('.swiper-container', {
  a11y: {
    prevSlideMessage: 'Previous slide',
    nextSlideMessage: 'Next slide',
  },
});

 

{
enabled boolean true Enables A11y
prevSlideMessage string 'Previous slide' Message for screen readers for previous button
nextSlideMessage string 'Next slide' Message for screen readers for next button
firstSlideMessage string 'This is the first slide' Message for screen readers for previous button when swiper is on first slide
lastSlideMessage string 'This is the last slide' Message for screen readers for previous button when swiper is on last slide
paginationBulletMessage string 'Go to slide {{index}}' Message for screen readers for single pagination bullet
notificationClass string 'swiper-notification' CSS class name of a11 notification
}

0 Comment

temp