defaults.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. export default {
  2. init: true,
  3. direction: 'horizontal',
  4. touchEventsTarget: 'wrapper',
  5. initialSlide: 0,
  6. speed: 300,
  7. cssMode: false,
  8. updateOnWindowResize: true,
  9. resizeObserver: true,
  10. nested: false,
  11. createElements: false,
  12. enabled: true,
  13. focusableElements: 'input, select, option, textarea, button, video, label',
  14. // Overrides
  15. width: null,
  16. height: null,
  17. //
  18. preventInteractionOnTransition: false,
  19. // ssr
  20. userAgent: null,
  21. url: null,
  22. // To support iOS's swipe-to-go-back gesture (when being used in-app).
  23. edgeSwipeDetection: false,
  24. edgeSwipeThreshold: 20,
  25. // Autoheight
  26. autoHeight: false,
  27. // Set wrapper width
  28. setWrapperSize: false,
  29. // Virtual Translate
  30. virtualTranslate: false,
  31. virtualList: [],
  32. virtualIndexList: [],
  33. // Effects
  34. effect: 'slide',
  35. // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
  36. // Breakpoints
  37. breakpoints: undefined,
  38. breakpointsBase: 'window',
  39. // Slides grid
  40. spaceBetween: 0,
  41. slidesPerView: 1,
  42. slidesPerGroup: 1,
  43. slidesPerGroupSkip: 0,
  44. slidesPerGroupAuto: false,
  45. centeredSlides: false,
  46. centeredSlidesBounds: false,
  47. slidesOffsetBefore: 0,
  48. // in px
  49. slidesOffsetAfter: 0,
  50. // in px
  51. normalizeSlideIndex: true,
  52. centerInsufficientSlides: false,
  53. // Disable swiper and hide navigation when container not overflow
  54. watchOverflow: true,
  55. // Round length
  56. roundLengths: false,
  57. // Touches
  58. touchRatio: 1,
  59. touchAngle: 45,
  60. simulateTouch: true,
  61. shortSwipes: true,
  62. longSwipes: true,
  63. longSwipesRatio: 0.5,
  64. longSwipesMs: 300,
  65. followFinger: true,
  66. allowTouchMove: true,
  67. threshold: 0,
  68. touchMoveStopPropagation: false,
  69. touchStartPreventDefault: true,
  70. touchStartForcePreventDefault: false,
  71. touchReleaseOnEdges: false,
  72. // Unique Navigation Elements
  73. uniqueNavElements: true,
  74. // Resistance
  75. resistance: true,
  76. resistanceRatio: 0.85,
  77. // Progress
  78. watchSlidesProgress: false,
  79. // Cursor
  80. grabCursor: false,
  81. // Clicks
  82. preventClicks: true,
  83. preventClicksPropagation: true,
  84. slideToClickedSlide: false,
  85. // Images
  86. preloadImages: true,
  87. updateOnImagesReady: true,
  88. // loop
  89. loop: false,
  90. loopAdditionalSlides: 0,
  91. loopedSlides: null,
  92. loopFillGroupWithBlank: false,
  93. loopPreventsSlide: true,
  94. // rewind
  95. rewind: false,
  96. // Swiping/no swiping
  97. allowSlidePrev: true,
  98. allowSlideNext: true,
  99. swipeHandler: null,
  100. // '.swipe-handler',
  101. noSwiping: false,
  102. noSwipingClass: 'swiper-no-swiping',
  103. noSwipingSelector: null,
  104. // Passive Listeners
  105. passiveListeners: true,
  106. // NS
  107. containerModifierClass: 'swiper-',
  108. // NEW
  109. slideClass: 'swiper-slide',
  110. slideBlankClass: 'swiper-slide-invisible-blank',
  111. slideActiveClass: 'swiper-slide-active',
  112. slideDuplicateActiveClass: 'swiper-slide-duplicate-active',
  113. slideVisibleClass: 'swiper-slide-visible',
  114. slideDuplicateClass: 'swiper-slide-duplicate',
  115. slideNextClass: 'swiper-slide-next',
  116. slideDuplicateNextClass: 'swiper-slide-duplicate-next',
  117. slidePrevClass: 'swiper-slide-prev',
  118. slideDuplicatePrevClass: 'swiper-slide-duplicate-prev',
  119. wrapperClass: 'swiper-wrapper',
  120. slideThumbsClass: 'swiper-slide-thumb',
  121. // Callbacks
  122. runCallbacksOnInit: true,
  123. // Internals
  124. _emitClasses: false,
  125. willChange: false
  126. };