Skip to content

Commit

Permalink
feat: new maxBackfaceHiddenSlides param to prevent flicker in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jan 28, 2022
1 parent 6aea26f commit d679a98
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types/swiper-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,15 @@ export interface SwiperOptions {
*/
slidesPerView?: number | 'auto';

/**
* If total number of slides less than specified here value, then Swiper will enable `backface-visibility: hidden` on slide elements to reduce visual "flicker" in Safari.
*
* @note It is not recommended to enable it on large amount of slides as it will reduce performance
*
* @default 10
*/
maxBackfaceHiddenSlides?: number;

/**
* Set numbers of slides to define and enable group sliding. Useful to use with slidesPerView > 1
*
Expand Down

0 comments on commit d679a98

Please sign in to comment.