@gem-sdk/swiper 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +11 -0
  3. package/modules/a11y-element.css +9 -0
  4. package/modules/a11y-element.min.css +1 -0
  5. package/modules/a11y.css +9 -0
  6. package/modules/a11y.less +9 -0
  7. package/modules/a11y.min.css +1 -0
  8. package/modules/a11y.min.mjs +2 -0
  9. package/modules/a11y.min.mjs.map +1 -0
  10. package/modules/a11y.mjs +377 -0
  11. package/modules/a11y.scss +9 -0
  12. package/modules/autoplay-element.css +0 -0
  13. package/modules/autoplay-element.min.css +0 -0
  14. package/modules/autoplay.css +0 -0
  15. package/modules/autoplay.less +0 -0
  16. package/modules/autoplay.min.css +0 -0
  17. package/modules/autoplay.min.mjs +2 -0
  18. package/modules/autoplay.min.mjs.map +1 -0
  19. package/modules/autoplay.mjs +304 -0
  20. package/modules/autoplay.scss +0 -0
  21. package/modules/controller-element.css +0 -0
  22. package/modules/controller-element.min.css +0 -0
  23. package/modules/controller.css +0 -0
  24. package/modules/controller.less +0 -0
  25. package/modules/controller.min.css +0 -0
  26. package/modules/controller.min.mjs +2 -0
  27. package/modules/controller.min.mjs.map +1 -0
  28. package/modules/controller.mjs +191 -0
  29. package/modules/controller.scss +0 -0
  30. package/modules/effect-cards-element.css +9 -0
  31. package/modules/effect-cards-element.min.css +1 -0
  32. package/modules/effect-cards.css +9 -0
  33. package/modules/effect-cards.less +10 -0
  34. package/modules/effect-cards.min.css +1 -0
  35. package/modules/effect-cards.min.mjs +2 -0
  36. package/modules/effect-cards.min.mjs.map +1 -0
  37. package/modules/effect-cards.mjs +128 -0
  38. package/modules/effect-cards.scss +10 -0
  39. package/modules/effect-coverflow-element.css +0 -0
  40. package/modules/effect-coverflow-element.min.css +0 -0
  41. package/modules/effect-coverflow.css +0 -0
  42. package/modules/effect-coverflow.less +2 -0
  43. package/modules/effect-coverflow.min.css +0 -0
  44. package/modules/effect-coverflow.min.mjs +2 -0
  45. package/modules/effect-coverflow.min.mjs.map +1 -0
  46. package/modules/effect-coverflow.mjs +104 -0
  47. package/modules/effect-coverflow.scss +2 -0
  48. package/modules/effect-creative-element.css +6 -0
  49. package/modules/effect-creative-element.min.css +1 -0
  50. package/modules/effect-creative.css +6 -0
  51. package/modules/effect-creative.less +7 -0
  52. package/modules/effect-creative.min.css +1 -0
  53. package/modules/effect-creative.min.mjs +2 -0
  54. package/modules/effect-creative.min.mjs.map +1 -0
  55. package/modules/effect-creative.mjs +146 -0
  56. package/modules/effect-creative.scss +7 -0
  57. package/modules/effect-cube-element.css +53 -0
  58. package/modules/effect-cube-element.min.css +1 -0
  59. package/modules/effect-cube.css +62 -0
  60. package/modules/effect-cube.less +71 -0
  61. package/modules/effect-cube.min.css +1 -0
  62. package/modules/effect-cube.min.mjs +2 -0
  63. package/modules/effect-cube.min.mjs.map +1 -0
  64. package/modules/effect-cube.mjs +174 -0
  65. package/modules/effect-cube.scss +71 -0
  66. package/modules/effect-fade-element.css +16 -0
  67. package/modules/effect-fade-element.min.css +1 -0
  68. package/modules/effect-fade.css +16 -0
  69. package/modules/effect-fade.less +20 -0
  70. package/modules/effect-fade.min.css +1 -0
  71. package/modules/effect-fade.min.mjs +2 -0
  72. package/modules/effect-fade.min.mjs.map +1 -0
  73. package/modules/effect-fade.mjs +66 -0
  74. package/modules/effect-fade.scss +20 -0
  75. package/modules/effect-flip-element.css +17 -0
  76. package/modules/effect-flip-element.min.css +1 -0
  77. package/modules/effect-flip.css +26 -0
  78. package/modules/effect-flip.less +30 -0
  79. package/modules/effect-flip.min.css +1 -0
  80. package/modules/effect-flip.min.mjs +2 -0
  81. package/modules/effect-flip.min.mjs.map +1 -0
  82. package/modules/effect-flip.mjs +111 -0
  83. package/modules/effect-flip.scss +30 -0
  84. package/modules/free-mode-element.css +4 -0
  85. package/modules/free-mode-element.min.css +1 -0
  86. package/modules/free-mode.css +4 -0
  87. package/modules/free-mode.less +4 -0
  88. package/modules/free-mode.min.css +1 -0
  89. package/modules/free-mode.min.mjs +2 -0
  90. package/modules/free-mode.min.mjs.map +1 -0
  91. package/modules/free-mode.mjs +237 -0
  92. package/modules/free-mode.scss +4 -0
  93. package/modules/grid-element.css +7 -0
  94. package/modules/grid-element.min.css +1 -0
  95. package/modules/grid.css +7 -0
  96. package/modules/grid.less +7 -0
  97. package/modules/grid.min.css +1 -0
  98. package/modules/grid.min.mjs +2 -0
  99. package/modules/grid.min.mjs.map +1 -0
  100. package/modules/grid.mjs +155 -0
  101. package/modules/grid.scss +7 -0
  102. package/modules/hash-navigation-element.css +0 -0
  103. package/modules/hash-navigation-element.min.css +0 -0
  104. package/modules/hash-navigation.css +0 -0
  105. package/modules/hash-navigation.less +2 -0
  106. package/modules/hash-navigation.min.css +0 -0
  107. package/modules/hash-navigation.min.mjs +2 -0
  108. package/modules/hash-navigation.min.mjs.map +1 -0
  109. package/modules/hash-navigation.mjs +93 -0
  110. package/modules/hash-navigation.scss +0 -0
  111. package/modules/history-element.css +0 -0
  112. package/modules/history-element.min.css +0 -0
  113. package/modules/history.css +0 -0
  114. package/modules/history.less +0 -0
  115. package/modules/history.min.css +0 -0
  116. package/modules/history.min.mjs +2 -0
  117. package/modules/history.min.mjs.map +1 -0
  118. package/modules/history.mjs +142 -0
  119. package/modules/history.scss +0 -0
  120. package/modules/index.min.mjs +2 -0
  121. package/modules/index.min.mjs.map +1 -0
  122. package/modules/index.mjs +23 -0
  123. package/modules/keyboard-element.css +0 -0
  124. package/modules/keyboard-element.min.css +0 -0
  125. package/modules/keyboard.css +0 -0
  126. package/modules/keyboard.less +0 -0
  127. package/modules/keyboard.min.css +0 -0
  128. package/modules/keyboard.min.mjs +2 -0
  129. package/modules/keyboard.min.mjs.map +1 -0
  130. package/modules/keyboard.mjs +117 -0
  131. package/modules/keyboard.scss +0 -0
  132. package/modules/manipulation-element.css +0 -0
  133. package/modules/manipulation-element.min.css +0 -0
  134. package/modules/manipulation.css +0 -0
  135. package/modules/manipulation.less +0 -0
  136. package/modules/manipulation.min.css +0 -0
  137. package/modules/manipulation.min.mjs +2 -0
  138. package/modules/manipulation.min.mjs.map +1 -0
  139. package/modules/manipulation.mjs +193 -0
  140. package/modules/manipulation.scss +0 -0
  141. package/modules/mousewheel-element.css +0 -0
  142. package/modules/mousewheel-element.min.css +0 -0
  143. package/modules/mousewheel.css +0 -0
  144. package/modules/mousewheel.less +0 -0
  145. package/modules/mousewheel.min.css +0 -0
  146. package/modules/mousewheel.min.mjs +2 -0
  147. package/modules/mousewheel.min.mjs.map +1 -0
  148. package/modules/mousewheel.mjs +395 -0
  149. package/modules/mousewheel.scss +0 -0
  150. package/modules/navigation-element.css +63 -0
  151. package/modules/navigation-element.min.css +1 -0
  152. package/modules/navigation.css +86 -0
  153. package/modules/navigation.less +86 -0
  154. package/modules/navigation.min.css +1 -0
  155. package/modules/navigation.min.mjs +2 -0
  156. package/modules/navigation.min.mjs.map +1 -0
  157. package/modules/navigation.mjs +200 -0
  158. package/modules/navigation.scss +87 -0
  159. package/modules/pagination-element.css +184 -0
  160. package/modules/pagination-element.min.css +1 -0
  161. package/modules/pagination.css +184 -0
  162. package/modules/pagination.less +187 -0
  163. package/modules/pagination.min.css +1 -0
  164. package/modules/pagination.min.mjs +2 -0
  165. package/modules/pagination.min.mjs.map +1 -0
  166. package/modules/pagination.mjs +467 -0
  167. package/modules/pagination.scss +188 -0
  168. package/modules/parallax-element.css +0 -0
  169. package/modules/parallax-element.min.css +0 -0
  170. package/modules/parallax.css +0 -0
  171. package/modules/parallax.less +0 -0
  172. package/modules/parallax.min.css +0 -0
  173. package/modules/parallax.min.mjs +2 -0
  174. package/modules/parallax.min.mjs.map +1 -0
  175. package/modules/parallax.mjs +124 -0
  176. package/modules/parallax.scss +0 -0
  177. package/modules/scrollbar-element.css +58 -0
  178. package/modules/scrollbar-element.min.css +1 -0
  179. package/modules/scrollbar.css +58 -0
  180. package/modules/scrollbar.less +59 -0
  181. package/modules/scrollbar.min.css +1 -0
  182. package/modules/scrollbar.min.mjs +2 -0
  183. package/modules/scrollbar.min.mjs.map +1 -0
  184. package/modules/scrollbar.mjs +366 -0
  185. package/modules/scrollbar.scss +61 -0
  186. package/modules/thumbs-element.css +0 -0
  187. package/modules/thumbs-element.min.css +0 -0
  188. package/modules/thumbs.css +0 -0
  189. package/modules/thumbs.less +5 -0
  190. package/modules/thumbs.min.css +0 -0
  191. package/modules/thumbs.min.mjs +2 -0
  192. package/modules/thumbs.min.mjs.map +1 -0
  193. package/modules/thumbs.mjs +197 -0
  194. package/modules/thumbs.scss +5 -0
  195. package/modules/virtual-element.css +19 -0
  196. package/modules/virtual-element.min.css +1 -0
  197. package/modules/virtual.css +19 -0
  198. package/modules/virtual.less +26 -0
  199. package/modules/virtual.min.css +1 -0
  200. package/modules/virtual.min.mjs +2 -0
  201. package/modules/virtual.min.mjs.map +1 -0
  202. package/modules/virtual.mjs +349 -0
  203. package/modules/virtual.scss +26 -0
  204. package/modules/zoom-element.css +5 -0
  205. package/modules/zoom-element.min.css +1 -0
  206. package/modules/zoom.css +21 -0
  207. package/modules/zoom.less +23 -0
  208. package/modules/zoom.min.css +1 -0
  209. package/modules/zoom.min.mjs +2 -0
  210. package/modules/zoom.min.mjs.map +1 -0
  211. package/modules/zoom.mjs +701 -0
  212. package/modules/zoom.scss +21 -0
  213. package/package.json +213 -0
  214. package/shared/classes-to-selector.min.mjs +2 -0
  215. package/shared/classes-to-selector.min.mjs.map +1 -0
  216. package/shared/classes-to-selector.mjs +9 -0
  217. package/shared/create-element-if-not-defined.min.mjs +2 -0
  218. package/shared/create-element-if-not-defined.min.mjs.map +1 -0
  219. package/shared/create-element-if-not-defined.mjs +21 -0
  220. package/shared/create-shadow.min.mjs +2 -0
  221. package/shared/create-shadow.min.mjs.map +1 -0
  222. package/shared/create-shadow.mjs +14 -0
  223. package/shared/effect-init.min.mjs +2 -0
  224. package/shared/effect-init.min.mjs.map +1 -0
  225. package/shared/effect-init.mjs +58 -0
  226. package/shared/effect-target.min.mjs +2 -0
  227. package/shared/effect-target.min.mjs.map +1 -0
  228. package/shared/effect-target.mjs +12 -0
  229. package/shared/effect-virtual-transition-end.min.mjs +2 -0
  230. package/shared/effect-virtual-transition-end.min.mjs.map +1 -0
  231. package/shared/effect-virtual-transition-end.mjs +48 -0
  232. package/shared/get-element-params.min.mjs +2 -0
  233. package/shared/get-element-params.min.mjs.map +1 -0
  234. package/shared/get-element-params.mjs +113 -0
  235. package/shared/ssr-window.esm.min.mjs +2 -0
  236. package/shared/ssr-window.esm.min.mjs.map +1 -0
  237. package/shared/ssr-window.esm.mjs +146 -0
  238. package/shared/swiper-core.min.mjs +2 -0
  239. package/shared/swiper-core.min.mjs.map +1 -0
  240. package/shared/swiper-core.mjs +3969 -0
  241. package/shared/update-on-virtual-data.min.mjs +2 -0
  242. package/shared/update-on-virtual-data.min.mjs.map +1 -0
  243. package/shared/update-on-virtual-data.mjs +131 -0
  244. package/shared/update-swiper.min.mjs +2 -0
  245. package/shared/update-swiper.min.mjs.map +1 -0
  246. package/shared/update-swiper.mjs +238 -0
  247. package/shared/utils.min.mjs +2 -0
  248. package/shared/utils.min.mjs.map +1 -0
  249. package/shared/utils.mjs +343 -0
  250. package/swiper-bundle.css +735 -0
  251. package/swiper-bundle.js +9870 -0
  252. package/swiper-bundle.min.css +13 -0
  253. package/swiper-bundle.min.js +14 -0
  254. package/swiper-bundle.min.js.map +1 -0
  255. package/swiper-bundle.min.mjs +14 -0
  256. package/swiper-bundle.min.mjs.map +1 -0
  257. package/swiper-bundle.mjs +42 -0
  258. package/swiper-effect-utils.d.ts +28 -0
  259. package/swiper-effect-utils.min.mjs +14 -0
  260. package/swiper-effect-utils.min.mjs.map +1 -0
  261. package/swiper-effect-utils.mjs +17 -0
  262. package/swiper-element-bundle.js +10477 -0
  263. package/swiper-element-bundle.min.js +14 -0
  264. package/swiper-element-bundle.min.js.map +1 -0
  265. package/swiper-element-bundle.min.mjs +14 -0
  266. package/swiper-element-bundle.min.mjs.map +1 -0
  267. package/swiper-element-bundle.mjs +288 -0
  268. package/swiper-element.d.ts +444 -0
  269. package/swiper-element.js +5037 -0
  270. package/swiper-element.min.js +14 -0
  271. package/swiper-element.min.js.map +1 -0
  272. package/swiper-element.min.mjs +14 -0
  273. package/swiper-element.min.mjs.map +1 -0
  274. package/swiper-element.mjs +287 -0
  275. package/swiper-react.d.ts +501 -0
  276. package/swiper-react.mjs +394 -0
  277. package/swiper-vars.less +1 -0
  278. package/swiper-vars.scss +1 -0
  279. package/swiper-vue.d.ts +866 -0
  280. package/swiper-vue.mjs +838 -0
  281. package/swiper.css +228 -0
  282. package/swiper.d.ts +5 -0
  283. package/swiper.js +4418 -0
  284. package/swiper.less +251 -0
  285. package/swiper.min.css +13 -0
  286. package/swiper.min.js +14 -0
  287. package/swiper.min.js.map +1 -0
  288. package/swiper.min.mjs +14 -0
  289. package/swiper.min.mjs.map +1 -0
  290. package/swiper.mjs +13 -0
  291. package/swiper.scss +252 -0
  292. package/types/index.d.ts +6 -0
  293. package/types/modules/a11y.d.ts +110 -0
  294. package/types/modules/autoplay.d.ts +133 -0
  295. package/types/modules/controller.d.ts +35 -0
  296. package/types/modules/effect-cards.d.ts +33 -0
  297. package/types/modules/effect-coverflow.d.ts +45 -0
  298. package/types/modules/effect-creative.d.ts +86 -0
  299. package/types/modules/effect-cube.d.ts +30 -0
  300. package/types/modules/effect-fade.d.ts +12 -0
  301. package/types/modules/effect-flip.d.ts +18 -0
  302. package/types/modules/free-mode.d.ts +64 -0
  303. package/types/modules/grid.d.ts +21 -0
  304. package/types/modules/hash-navigation.d.ts +38 -0
  305. package/types/modules/history.d.ts +43 -0
  306. package/types/modules/index.d.ts +51 -0
  307. package/types/modules/keyboard.d.ts +46 -0
  308. package/types/modules/manipulation.d.ts +70 -0
  309. package/types/modules/mousewheel.d.ts +86 -0
  310. package/types/modules/navigation.d.ts +105 -0
  311. package/types/modules/pagination.d.ts +307 -0
  312. package/types/modules/parallax.d.ts +12 -0
  313. package/types/modules/public-api.d.ts +23 -0
  314. package/types/modules/scrollbar.d.ts +140 -0
  315. package/types/modules/thumbs.d.ts +54 -0
  316. package/types/modules/virtual.d.ts +135 -0
  317. package/types/modules/zoom.d.ts +91 -0
  318. package/types/shared.d.ts +13 -0
  319. package/types/swiper-class.d.ts +522 -0
  320. package/types/swiper-events.d.ts +359 -0
  321. package/types/swiper-options.d.ts +1217 -0
@@ -0,0 +1,1217 @@
1
+ import type { A11yOptions } from './modules/a11y.d.ts';
2
+ import type { AutoplayOptions } from './modules/autoplay.d.ts';
3
+ import type { ControllerOptions } from './modules/controller.d.ts';
4
+ import type { CoverflowEffectOptions } from './modules/effect-coverflow.d.ts';
5
+ import type { CubeEffectOptions } from './modules/effect-cube.d.ts';
6
+ import type { FadeEffectOptions } from './modules/effect-fade.d.ts';
7
+ import type { FlipEffectOptions } from './modules/effect-flip.d.ts';
8
+ import type { CreativeEffectOptions } from './modules/effect-creative.d.ts';
9
+ import type { CardsEffectOptions } from './modules/effect-cards.d.ts';
10
+ import type { HashNavigationOptions } from './modules/hash-navigation.d.ts';
11
+ import type { HistoryOptions } from './modules/history.d.ts';
12
+ import type { KeyboardOptions } from './modules/keyboard.d.ts';
13
+ import type { MousewheelOptions } from './modules/mousewheel.d.ts';
14
+ import type { NavigationOptions } from './modules/navigation.d.ts';
15
+ import type { PaginationOptions } from './modules/pagination.d.ts';
16
+ import type { ParallaxOptions } from './modules/parallax.d.ts';
17
+ import type { ScrollbarOptions } from './modules/scrollbar.d.ts';
18
+ import type { ThumbsOptions } from './modules/thumbs.d.ts';
19
+ import type { VirtualOptions } from './modules/virtual.d.ts';
20
+ import type { ZoomOptions } from './modules/zoom.d.ts';
21
+ import type { FreeModeOptions } from './modules/free-mode.d.ts';
22
+ import type { GridOptions } from './modules/grid.d.ts';
23
+
24
+ import type { CSSSelector, SwiperModule } from './shared.d.ts';
25
+ import type { SwiperEvents } from './swiper-events.d.ts';
26
+
27
+ export interface SwiperOptions {
28
+ /**
29
+ * Array with Swiper modules
30
+ *
31
+ * @example
32
+ * ```js
33
+ * import Swiper from 'swiper';
34
+ * import { Navigation, Pagination } from 'swiper/modules';
35
+ *
36
+ * const swiper = new Swiper('.swiper', {
37
+ * modules: [ Navigation, Pagination ],
38
+ * });
39
+ * ```
40
+ */
41
+ modules?: SwiperModule[];
42
+ /**
43
+ * Inject text styles to the shadow DOM. Only for usage with Swiper Element
44
+ *
45
+ */
46
+ injectStyles?: string[];
47
+ /**
48
+ * Inject styles `<link>`s to the shadow DOM. Only for usage with Swiper Element
49
+ *
50
+ */
51
+ injectStylesUrls?: string[];
52
+ /**
53
+ * Whether Swiper should be initialised automatically when you create an instance.
54
+ * If disabled, then you need to init it manually by calling `swiper.init()`
55
+ *
56
+ * @default true
57
+ */
58
+ init?: boolean;
59
+
60
+ /**
61
+ * Whether Swiper initially enabled. When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
62
+ *
63
+ * @default true
64
+ */
65
+ enabled?: boolean;
66
+
67
+ /**
68
+ * Swiper will recalculate slides position on window resize (orientationchange)
69
+ *
70
+ * @default true
71
+ */
72
+ updateOnWindowResize?: boolean;
73
+
74
+ /**
75
+ * When enabled it will use ResizeObserver (if supported by browser) on swiper container to detect container resize (instead of watching for window resize)
76
+ *
77
+ * @default true
78
+ */
79
+ resizeObserver?: boolean;
80
+
81
+ /**
82
+ * Index number of initial slide.
83
+ *
84
+ * @default 0
85
+ */
86
+ initialSlide?: number;
87
+
88
+ /**
89
+ * Can be `'horizontal'` or `'vertical'` (for vertical slider).
90
+ *
91
+ * @default 'horizontal'
92
+ */
93
+ direction?: 'horizontal' | 'vertical';
94
+
95
+ /**
96
+ * When enabled, will swipe slides only forward (one-way) regardless of swipe direction
97
+ *
98
+ * @default false
99
+ */
100
+
101
+ oneWayMovement?: boolean;
102
+
103
+ /**
104
+ * The name of the swiper element node name; used for detecting web component rendering
105
+ *
106
+ * @default 'SWIPER-CONTAINER'
107
+ */
108
+ swiperElementNodeName?: string;
109
+
110
+ /**
111
+ * Duration of transition between slides (in ms)
112
+ *
113
+ * @default 300
114
+ */
115
+ speed?: number;
116
+
117
+ /**
118
+ * Enabled this option and plugin will set width/height on swiper wrapper equal to total size of all slides.
119
+ * Mostly should be used as compatibility fallback option for browser that don't support flexbox layout well
120
+ *
121
+ * @default false
122
+ */
123
+ setWrapperSize?: boolean;
124
+
125
+ /**
126
+ * Enabled this option and swiper will be operated as usual except it will not move, real translate values on wrapper will not be set.
127
+ * Useful when you may need to create custom slide transition
128
+ *
129
+ * @default false
130
+ */
131
+ virtualTranslate?: boolean;
132
+
133
+ /**
134
+ * Swiper width (in px). Parameter allows to force Swiper width.
135
+ * Useful only if you initialize Swiper when it is hidden and in SSR and Test environments for correct Swiper initialization
136
+ *
137
+ * @default null
138
+ *
139
+ * @note Setting this parameter will make Swiper not responsive
140
+ */
141
+ width?: number | null;
142
+
143
+ /**
144
+ * Swiper height (in px). Parameter allows to force Swiper height.
145
+ * Useful only if you initialize Swiper when it is hidden and in SSR and Test environments for correct Swiper initialization
146
+ *
147
+ * @default null
148
+ *
149
+ * @note Setting this parameter will make Swiper not responsive
150
+ */
151
+ height?: number | null;
152
+
153
+ /**
154
+ * Set to `true` and slider wrapper will adapt its height to the height of the currently active slide
155
+ *
156
+ * @default false
157
+ */
158
+ autoHeight?: boolean;
159
+
160
+ /**
161
+ * Set to `true` to round values of slides width and height to prevent blurry texts on usual
162
+ * resolution screens (if you have such)
163
+ *
164
+ * @default false
165
+ */
166
+ roundLengths?: boolean;
167
+
168
+ /**
169
+ * Set to `true` on Swiper for correct touch events interception. Use only on
170
+ * swipers that use same direction as the parent one
171
+ *
172
+ * @default false
173
+ */
174
+ nested?: boolean;
175
+
176
+ /**
177
+ * When enabled Swiper will automatically wrap slides with swiper-wrapper element,
178
+ * and will create required elements for navigation, pagination and scrollbar
179
+ * they are enabled (with their respective params object or with boolean `true`))
180
+ *
181
+ * @default false
182
+ */
183
+ createElements?: boolean;
184
+
185
+ /**
186
+ * Event name prefix for all DOM events emitted by Swiper Element (web component)
187
+ *
188
+ * @default `swiper`
189
+ */
190
+ eventsPrefix?: string;
191
+
192
+ /**
193
+ * CSS selector for focusable elements. Swiping will be disabled on such elements if they are "focused"
194
+ *
195
+ * @default 'input, select, option, textarea, button, video, label'
196
+ */
197
+ focusableElements?: string;
198
+
199
+ /**
200
+ * If enabled (by default) and navigation elements' parameters passed as a string (like `".pagination"`)
201
+ * then Swiper will look for such elements through child elements first.
202
+ * Applies for pagination, prev/next buttons and scrollbar elements
203
+ *
204
+ * @default true
205
+ */
206
+ uniqueNavElements?: boolean;
207
+
208
+ /**
209
+ * Transition effect. Can be `'slide'`, `'fade'`, `'cube'`, `'coverflow'`, `'flip'`, `'creative'` or `'cards'`
210
+ *
211
+ * @default 'slide'
212
+ */
213
+ effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip' | 'creative' | 'cards' | (string & {});
214
+
215
+ /**
216
+ * Fire Transition/SlideChange/Start/End events on swiper initialization.
217
+ * Such events will be fired on initialization in case of your initialSlide is not 0, or you use loop mode
218
+ *
219
+ * @default true
220
+ */
221
+ runCallbacksOnInit?: boolean;
222
+
223
+ /**
224
+ * When enabled Swiper will be disabled and hide navigation buttons on
225
+ * case there are not enough slides for sliding.
226
+ *
227
+ * @default true
228
+ */
229
+ watchOverflow?: boolean;
230
+
231
+ /**
232
+ * userAgent string. Required for browser/device detection when rendered on server-side
233
+ *
234
+ * @default null
235
+ */
236
+ userAgent?: string | null;
237
+
238
+ /**
239
+ * Required for active slide detection when rendered on server-side and enabled history
240
+ *
241
+ * @default null
242
+ */
243
+ url?: string | null;
244
+
245
+ /**
246
+ * Register event handlers
247
+ */
248
+ on?: {
249
+ [event in keyof SwiperEvents]?: SwiperEvents[event];
250
+ };
251
+
252
+ /**
253
+ * Add event listener that will be fired on all events
254
+ *
255
+ * @example
256
+ * ```js
257
+ * const swiper = new Swiper('.swiper', {
258
+ * onAny(eventName, ...args) {
259
+ * console.log('Event: ', eventName);
260
+ * console.log('Event data: ', args);
261
+ * }
262
+ * });
263
+ * ```
264
+ */
265
+ onAny?(handler: (eventName: string, ...args: any[]) => void): void;
266
+
267
+ /**
268
+ * When enabled it will use modern CSS Scroll Snap API.
269
+ * It doesn't support all of Swiper's features, but potentially should bring a much better performance in simple configurations.
270
+ *
271
+ * This is what is not supported when it is enabled:
272
+ *
273
+ * - Cube effect
274
+ * - `speed` parameter may not have no effect
275
+ * - All transition start/end related events (use `slideChange` instead)
276
+ * - `slidesPerGroup` has limited support
277
+ * - `simulateTouch` doesn't have effect and "dragging" with mouse doesn't work
278
+ * - `resistance` doesn't have any effect
279
+ * - `allowSlidePrev/Next`
280
+ * - `swipeHandler`
281
+ *
282
+ * In case if you use it with other effects, especially 3D effects, it is required to wrap slide's content with `<div class="swiper-slide-transform">` element. And if you use any custom styles on slides (like background colors, border radius, border, etc.), they should be set on `swiper-slide-transform` element instead.
283
+ *
284
+ * @example
285
+ * ```html
286
+ * <div class="swiper">
287
+ * <div class="swiper-wrapper">
288
+ * <div class="swiper-slide">
289
+ * <!-- wrap slide content with transform element -->
290
+ * <div class="swiper-slide-transform">
291
+ * ... slide content ...
292
+ * </div>
293
+ * </div>
294
+ * ...
295
+ * </div>
296
+ * </div>
297
+ * <script>
298
+ * const swiper = new Swiper('.swiper', {
299
+ * effect: 'flip',
300
+ * cssMode: true,
301
+ * });
302
+ * </script>
303
+ * ```
304
+ *
305
+ * @default false
306
+ */
307
+ cssMode?: boolean;
308
+
309
+ // Slides grid
310
+
311
+ /**
312
+ * Distance between slides in px.
313
+ *
314
+ * @default 0
315
+ *
316
+ * @note If you use "margin" css property to the elements which go into Swiper in which you pass "spaceBetween" into, navigation might not work properly.
317
+ */
318
+ spaceBetween?: number | string;
319
+
320
+ /**
321
+ * Number of slides per view (slides visible at the same time on slider's container).
322
+ * @note `slidesPerView: 'auto'` is currently not compatible with multirow mode, when `grid.rows` > 1
323
+ *
324
+ * @default 1
325
+ */
326
+ slidesPerView?: number | 'auto';
327
+
328
+ /**
329
+ * 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.
330
+ *
331
+ * @note It is not recommended to enable it on large amount of slides as it will reduce performance
332
+ *
333
+ * @default 10
334
+ */
335
+ maxBackfaceHiddenSlides?: number;
336
+
337
+ /**
338
+ * Set numbers of slides to define and enable group sliding. Useful to use with slidesPerView > 1
339
+ *
340
+ * @default 1
341
+ */
342
+ slidesPerGroup?: number;
343
+
344
+ /**
345
+ * The parameter works in the following way: If `slidesPerGroupSkip` equals `0` (default), no slides are excluded from grouping, and the resulting behaviour is the same as without this change.
346
+ *
347
+ * If `slidesPerGroupSkip` is equal or greater than `1` the first X slides are treated as single groups, whereas all following slides are grouped by the `slidesPerGroup` value.
348
+ *
349
+ * @default 0
350
+ */
351
+ slidesPerGroupSkip?: number;
352
+
353
+ /**
354
+ * This param intended to be used only with `slidesPerView: 'auto'` and `slidesPerGroup: 1`. When enabled, it will skip all slides in view on `.slideNext()` & `.slidePrev()` methods calls, on Navigation "buttons" clicks and in autoplay.
355
+ *
356
+ * @default false
357
+ */
358
+ slidesPerGroupAuto?: boolean;
359
+
360
+ /**
361
+ * If `true`, then active slide will be centered, not always on the left side.
362
+ *
363
+ * @default false
364
+ */
365
+ centeredSlides?: boolean;
366
+
367
+ /**
368
+ * If `true`, then active slide will be centered without adding gaps at the beginning and end of slider.
369
+ * Required `centeredSlides: true`. Not intended to be used with `loop` or `pagination`
370
+ *
371
+ * @default false
372
+ */
373
+ centeredSlidesBounds?: boolean;
374
+
375
+ /**
376
+ * Add (in px) additional slide offset in the beginning of the container (before all slides)
377
+ *
378
+ * @default 0
379
+ */
380
+ slidesOffsetBefore?: number;
381
+
382
+ /**
383
+ * Add (in px) additional slide offset in the end of the container (after all slides)
384
+ *
385
+ * @default 0
386
+ */
387
+ slidesOffsetAfter?: number;
388
+
389
+ /**
390
+ * Normalize slide index.
391
+ *
392
+ * @default true
393
+ */
394
+ normalizeSlideIndex?: boolean;
395
+
396
+ /**
397
+ * When enabled it center slides if the amount of slides less than `slidesPerView`. Not intended to be used `loop` mode and `grid.rows`
398
+ *
399
+ * @default false
400
+ */
401
+ centerInsufficientSlides?: boolean;
402
+
403
+ /**
404
+ * This option may a little improve desktop usability. If `true`, user will see the "grab" cursor when hover on Swiper
405
+ *
406
+ * @default false
407
+ */
408
+ grabCursor?: boolean;
409
+
410
+ /**
411
+ * Target element to listen touch events on. Can be `'container'` (to listen for touch events on swiper) or `'wrapper'`
412
+ * (to listen for touch events on swiper-wrapper)
413
+ *
414
+ * @default 'wrapper'
415
+ */
416
+ touchEventsTarget?: 'container' | 'wrapper';
417
+
418
+ /**
419
+ * Touch ratio
420
+ *
421
+ * @default 1
422
+ */
423
+ touchRatio?: number;
424
+
425
+ /**
426
+ * Allowable angle (in degrees) to trigger touch move
427
+ *
428
+ * @default 45
429
+ */
430
+ touchAngle?: number;
431
+
432
+ /**
433
+ * If `true`, Swiper will accept mouse events like touch events (click and drag to change slides)
434
+ *
435
+ * @default true
436
+ */
437
+ simulateTouch?: boolean;
438
+
439
+ /**
440
+ * Set to `false` if you want to disable short swipes
441
+ *
442
+ * @default true
443
+ */
444
+ shortSwipes?: boolean;
445
+
446
+ /**
447
+ * Set to `false` if you want to disable long swipes
448
+ *
449
+ * @default true
450
+ */
451
+ longSwipes?: boolean;
452
+
453
+ /**
454
+ * Ratio to trigger swipe to next/previous slide during long swipes
455
+ *
456
+ * @default 0.5
457
+ */
458
+ longSwipesRatio?: number;
459
+
460
+ /**
461
+ * Minimal duration (in ms) to trigger swipe to next/previous slide during long swipes
462
+ *
463
+ * @default 300
464
+ */
465
+ longSwipesMs?: number;
466
+
467
+ /**
468
+ * If disabled, then slider will be animated only when you release it, it will not move while you hold your finger on it
469
+ *
470
+ * @default true
471
+ */
472
+ followFinger?: boolean;
473
+
474
+ /**
475
+ * If `false`, then the only way to switch the slide is use of external API functions like slidePrev or slideNext
476
+ *
477
+ * @default true
478
+ */
479
+ allowTouchMove?: boolean;
480
+
481
+ /**
482
+ * Threshold value in px. If "touch distance" will be lower than this value then swiper will not move
483
+ *
484
+ * @default 5
485
+ */
486
+ threshold?: number;
487
+
488
+ /**
489
+ * If disabled, `pointerdown` event won't be prevented
490
+ *
491
+ * @default true
492
+ */
493
+ touchStartPreventDefault?: boolean;
494
+
495
+ /**
496
+ * Force to always prevent default for `touchstart` (`pointerdown`) event
497
+ *
498
+ * @default false
499
+ */
500
+ touchStartForcePreventDefault?: boolean;
501
+
502
+ /**
503
+ * If enabled, then propagation of "touchmove" will be stopped
504
+ *
505
+ * @default false
506
+ */
507
+ touchMoveStopPropagation?: boolean;
508
+
509
+ /**
510
+ * Enable to release Swiper events for swipe-back work in app. If set to `'prevent'` then it will prevent system swipe-back navigation instead. This feature works only with "touch" events (and not pointer events), so it will work on iOS/Android devices and won't work on Windows devices with pointer (touch) events.
511
+ *
512
+ * @default false
513
+ */
514
+ edgeSwipeDetection?: boolean | string;
515
+
516
+ /**
517
+ * Area (in px) from left edge of the screen to release touch events for swipe-back in app
518
+ *
519
+ * @default 20
520
+ */
521
+ edgeSwipeThreshold?: number;
522
+
523
+ /**
524
+ * Enable to release touch events on slider edge position (beginning, end) to allow for further page scrolling. This feature works only with "touch" events (and not pointer events), so it will work on iOS/Android devices and won't work on Windows devices with pointer events. Also `threshold` parameter must be set to `0`
525
+ *
526
+ * @default false
527
+ */
528
+ touchReleaseOnEdges?: boolean;
529
+
530
+ /**
531
+ * Passive event listeners will be used by default where possible to improve scrolling performance on mobile devices.
532
+ * But if you need to use `e.preventDefault` and you have conflict with it, then you should disable this parameter
533
+ *
534
+ * @default true
535
+ */
536
+ passiveListeners?: boolean;
537
+
538
+ // Touch Resistance
539
+
540
+ /**
541
+ * Set to `false` if you want to disable resistant bounds
542
+ *
543
+ * @default true
544
+ */
545
+ resistance?: boolean;
546
+
547
+ /**
548
+ * This option allows you to control resistance ratio
549
+ *
550
+ * @default 0.85
551
+ */
552
+ resistanceRatio?: number;
553
+
554
+ // Swiping / No swiping
555
+ /**
556
+ * When enabled it won't allow to change slides by swiping or navigation/pagination buttons during transition
557
+ *
558
+ * @default false
559
+ */
560
+ preventInteractionOnTransition?: boolean;
561
+
562
+ /**
563
+ * Set to `false` to disable swiping to previous slide direction (to left or top)
564
+ *
565
+ * @default true
566
+ */
567
+ allowSlidePrev?: boolean;
568
+
569
+ /**
570
+ * Set to `false` to disable swiping to next slide direction (to right or bottom)
571
+ *
572
+ * @default true
573
+ */
574
+ allowSlideNext?: boolean;
575
+
576
+ /**
577
+ * Enable/disable swiping on elements matched to class specified in `noSwipingClass`
578
+ *
579
+ * @default true
580
+ */
581
+ noSwiping?: boolean;
582
+
583
+ /**
584
+ * Specify `noSwiping`'s element css class
585
+ *
586
+ * @default 'swiper-no-swiping'
587
+ */
588
+ noSwipingClass?: string;
589
+
590
+ /**
591
+ * Can be used instead of `noSwipingClass` to specify elements to disable swiping on.
592
+ * For example `'input'` will disable swiping on all inputs
593
+ *
594
+ * @default
595
+ */
596
+ noSwipingSelector?: string;
597
+
598
+ /**
599
+ * String with CSS selector or HTML element of the container with pagination that will work as only available handler for swiping
600
+ *
601
+ * @default null
602
+ */
603
+ swipeHandler?: CSSSelector | HTMLElement | null;
604
+
605
+ // Clicks
606
+ /**
607
+ * Set to `true` to prevent accidental unwanted clicks on links during swiping
608
+ *
609
+ * @default true
610
+ */
611
+ preventClicks?: boolean;
612
+
613
+ /**
614
+ * Set to `true` to stop clicks event propagation on links during swiping
615
+ *
616
+ * @default true
617
+ */
618
+ preventClicksPropagation?: boolean;
619
+
620
+ /**
621
+ * Set to `true` and click on any slide will produce transition to this slide
622
+ *
623
+ * @default false
624
+ */
625
+ slideToClickedSlide?: boolean;
626
+
627
+ // Progress
628
+ /**
629
+ * Enable this feature to calculate each slides progress and visibility (slides in viewport will have additional visible class)
630
+ *
631
+ * @default false
632
+ */
633
+ watchSlidesProgress?: boolean;
634
+
635
+ /**
636
+ * Set to `true` to enable continuous loop mode
637
+ *
638
+ * Because of nature of how the loop mode works (it will rearrange slides), total number of slides must be:
639
+ *
640
+ * - more than or equal to `slidesPerView` + `slidesPerGroup`
641
+ * - even to `slidesPerGroup` (or use `loopAddBlankSlides` parameter)
642
+ * - even to `grid.rows` (or use `loopAddBlankSlides` parameter)
643
+ *
644
+ * @default false
645
+ *
646
+ */
647
+ loop?: boolean;
648
+
649
+ /**
650
+ * Automatically adds blank slides if you use Grid or `slidesPerGroup` and the total amount of slides is not even to `slidesPerGroup` or to `grid.rows`
651
+ *
652
+ *
653
+ * @default true
654
+ *
655
+ */
656
+ loopAddBlankSlides?: boolean;
657
+
658
+ /**
659
+ * Allows to increase amount of looped slides
660
+ *
661
+ * @default 0
662
+ */
663
+ loopAdditionalSlides?: number;
664
+
665
+ /**
666
+ * If enabled then slideNext/Prev will do nothing while slider is animating in loop mode
667
+ *
668
+ * @default true
669
+ */
670
+ loopPreventsSliding?: boolean;
671
+
672
+ /**
673
+ * Set to `true` to enable "rewind" mode. When enabled, clicking "next" navigation button (or calling `.slideNext()`) when on last slide will slide back to the first slide. Clicking "prev" navigation button (or calling `.slidePrev()`) when on first slide will slide forward to the last slide.
674
+ *
675
+ * @default false
676
+ *
677
+ * @note Should not be used together with `loop` mode
678
+ */
679
+ rewind?: boolean;
680
+
681
+ /**
682
+ * Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which do not require different layout and logic, like `slidesPerView`, `slidesPerGroup`, `spaceBetween`, `grid.rows`. Such parameters like `loop` and `effect` won't work
683
+ *
684
+ * @example
685
+ * ```js
686
+ * const swiper = new Swiper('.swiper', {
687
+ * // Default parameters
688
+ * slidesPerView: 1,
689
+ * spaceBetween: 10,
690
+ * // Responsive breakpoints
691
+ * breakpoints: {
692
+ * // when window width is >= 320px
693
+ * 320: {
694
+ * slidesPerView: 2,
695
+ * spaceBetween: 20
696
+ * },
697
+ * // when window width is >= 480px
698
+ * 480: {
699
+ * slidesPerView: 3,
700
+ * spaceBetween: 30
701
+ * },
702
+ * // when window width is >= 640px
703
+ * 640: {
704
+ * slidesPerView: 4,
705
+ * spaceBetween: 40
706
+ * }
707
+ * }
708
+ * })
709
+ * ```
710
+ *
711
+ * @example
712
+ * ```js
713
+ * const swiper = new Swiper('.swiper', {
714
+ * slidesPerView: 1,
715
+ * spaceBetween: 10,
716
+ * // using "ratio" endpoints
717
+ * breakpoints: {
718
+ * '@0.75': {
719
+ * slidesPerView: 2,
720
+ * spaceBetween: 20,
721
+ * },
722
+ * '@1.00': {
723
+ * slidesPerView: 3,
724
+ * spaceBetween: 40,
725
+ * },
726
+ * '@1.50': {
727
+ * slidesPerView: 4,
728
+ * spaceBetween: 50,
729
+ * },
730
+ * }
731
+ * });
732
+ * ```
733
+ */
734
+ breakpoints?: {
735
+ [width: number]: SwiperOptions;
736
+ [ratio: string]: SwiperOptions;
737
+ };
738
+
739
+ /**
740
+ * Base for breakpoints (beta). Can be `window` or `container`. If set to `window` (by default) then breakpoint keys mean window width. If set to `container` then breakpoint keys treated as swiper container width
741
+ *
742
+ * @default 'window'
743
+ */
744
+ breakpointsBase?: 'window' | 'container' | CSSSelector;
745
+
746
+ // Observer
747
+ /**
748
+ * Set to `true` to enable Mutation Observer on Swiper and its elements. In this case Swiper will be updated (reinitialized) each time if you change its style (like hide/show) or modify its child elements (like adding/removing slides)
749
+ *
750
+ * @default false
751
+ */
752
+ observer?: boolean;
753
+ /**
754
+ * Set to `true` if you also need to watch Mutations for Swiper slide children elements
755
+ *
756
+ * @default false
757
+ */
758
+ observeSlideChildren?: boolean;
759
+ /**
760
+ * Set to `true` if you also need to watch Mutations for Swiper parent elements
761
+ *
762
+ * @default false
763
+ */
764
+ observeParents?: boolean;
765
+
766
+ // Namespace
767
+ /**
768
+ * The beginning of the modifier CSS class that can be added to swiper container depending on different parameters
769
+ *
770
+ * @default 'swiper-'
771
+ */
772
+ containerModifierClass?: string;
773
+
774
+ /**
775
+ * CSS class name of slide
776
+ *
777
+ * @default 'swiper-slide'
778
+ *
779
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
780
+ *
781
+ * @note Not supported in Swiper React/Vue components
782
+ */
783
+ slideClass?: string;
784
+
785
+ /**
786
+ * CSS class name of currently active slide
787
+ *
788
+ * @default 'swiper-slide-active'
789
+ *
790
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
791
+ *
792
+ * @note Not supported in Swiper React/Vue components
793
+ */
794
+ slideActiveClass?: string;
795
+
796
+ /**
797
+ * CSS class name of currently/partially visible slide
798
+ *
799
+ * @default 'swiper-slide-visible'
800
+ *
801
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
802
+ *
803
+ * @note Not supported in Swiper React/Vue
804
+ */
805
+ slideVisibleClass?: string;
806
+
807
+ /**
808
+ * CSS class name of fully (when whole slide is in the viewport) visible slide
809
+ *
810
+ * @default 'swiper-slide-fully-visible'
811
+ *
812
+ * @note Not supported in Swiper React/Vue
813
+ */
814
+ slideFullyVisibleClass?: string;
815
+
816
+ /**
817
+ * CSS class name of the blank slide added by the loop mode (when `loopAddBlankSlides` is enabled)
818
+ *
819
+ * @default 'swiper-slide-blank'
820
+ *
821
+ * @note Not supported in Swiper React/Vue
822
+ */
823
+ slideBlankClass?: string;
824
+
825
+ /**
826
+ * CSS class name of slide which is right after currently active slide
827
+ *
828
+ * @default 'swiper-slide-next'
829
+ *
830
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
831
+ *
832
+ * @note Not supported in Swiper React/Vue
833
+ */
834
+ slideNextClass?: string;
835
+
836
+ /**
837
+ * CSS class name of slide which is right before currently active slide
838
+ *
839
+ * @default 'swiper-slide-prev'
840
+ *
841
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
842
+ *
843
+ * @note Not supported in Swiper React/Vue
844
+ */
845
+ slidePrevClass?: string;
846
+
847
+ /**
848
+ * CSS class name of slides' wrapper
849
+ *
850
+ * @default 'swiper-wrapper'
851
+ *
852
+ * @note By changing classes you will also need to change Swiper's CSS to reflect changed classes
853
+ *
854
+ * @note Not supported in Swiper React/Vue
855
+ *
856
+ */
857
+ wrapperClass?: string;
858
+
859
+ /**
860
+ * CSS class name of lazy preloader
861
+ *
862
+ * @default 'swiper-lazy-preloader'
863
+ */
864
+ lazyPreloaderClass?: string;
865
+
866
+ /**
867
+ * Number of next and previous slides to preload. Only applicable if using lazy loading.
868
+ *
869
+ * @default 0
870
+ */
871
+ lazyPreloadPrevNext?: number;
872
+
873
+ /**
874
+ * Object with a11y parameters or boolean `true` to enable with default settings.
875
+ *
876
+ * @example
877
+ * ```js
878
+ * const swiper = new Swiper('.swiper', {
879
+ * a11y: {
880
+ * prevSlideMessage: 'Previous slide',
881
+ * nextSlideMessage: 'Next slide',
882
+ * },
883
+ * });
884
+ * ```
885
+ */
886
+ a11y?: A11yOptions;
887
+
888
+ /**
889
+ * Object with autoplay parameters or boolean `true` to enable with default settings
890
+ *
891
+ * @example
892
+ * ```js
893
+ * const swiper = new Swiper('.swiper', {
894
+ * autoplay: {
895
+ * delay: 5000,
896
+ * },
897
+ *});
898
+ * ```
899
+ */
900
+ autoplay?: AutoplayOptions | boolean;
901
+
902
+ /**
903
+ * Object with controller parameters or boolean `true` to enable with default settings
904
+ *
905
+ * @example
906
+ * ```js
907
+ * const swiper = new Swiper('.swiper', {
908
+ * controller: {
909
+ * inverse: true,
910
+ * },
911
+ * });
912
+ * ```
913
+ */
914
+ controller?: ControllerOptions;
915
+
916
+ /**
917
+ * Object with Coverflow-effect parameters.
918
+ *
919
+ * @example
920
+ * ```js
921
+ * const swiper = new Swiper('.swiper', {
922
+ * effect: 'coverflow',
923
+ * coverflowEffect: {
924
+ * rotate: 30,
925
+ * slideShadows: false,
926
+ * },
927
+ * });
928
+ * ```
929
+ */
930
+ coverflowEffect?: CoverflowEffectOptions;
931
+
932
+ /**
933
+ * Object with Cube-effect parameters
934
+ *
935
+ * @example
936
+ * ```js
937
+ * const swiper = new Swiper('.swiper', {
938
+ * effect: 'cube',
939
+ * cubeEffect: {
940
+ * slideShadows: false,
941
+ * },
942
+ * });
943
+ * ```
944
+ */
945
+ cubeEffect?: CubeEffectOptions;
946
+
947
+ /**
948
+ * Object with Fade-effect parameters
949
+ *
950
+ * @example
951
+ * ```js
952
+ * const swiper = new Swiper('.swiper', {
953
+ * effect: 'fade',
954
+ * fadeEffect: {
955
+ * crossFade: true
956
+ * },
957
+ * });
958
+ * ```
959
+ */
960
+ fadeEffect?: FadeEffectOptions;
961
+
962
+ /**
963
+ * Object with Flip-effect parameters
964
+ *
965
+ * @example
966
+ * ```js
967
+ * const swiper = new Swiper('.swiper', {
968
+ * effect: 'flip',
969
+ * flipEffect: {
970
+ * slideShadows: false,
971
+ * },
972
+ * });
973
+ * ```
974
+ */
975
+ flipEffect?: FlipEffectOptions;
976
+
977
+ /**
978
+ * Object with Creative-effect parameters
979
+ *
980
+ * @example
981
+ * ```js
982
+ * const swiper = new Swiper('.swiper', {
983
+ * effect: 'creative',
984
+ * creativeEffect: {
985
+ * prev: {
986
+ * // will set `translateZ(-400px)` on previous slides
987
+ * translate: [0, 0, -400],
988
+ * },
989
+ * next: {
990
+ * // will set `translateX(100%)` on next slides
991
+ * translate: ['100%', 0, 0],
992
+ * },
993
+ * },
994
+ * });
995
+ * ```
996
+ */
997
+ creativeEffect?: CreativeEffectOptions;
998
+
999
+ /**
1000
+ * Object with Cards-effect parameters
1001
+ *
1002
+ * @example
1003
+ * ```js
1004
+ * const swiper = new Swiper('.swiper', {
1005
+ * effect: 'cards',
1006
+ * cardsEffect: {
1007
+ * // ...
1008
+ * },
1009
+ * });
1010
+ * ```
1011
+ */
1012
+ cardsEffect?: CardsEffectOptions;
1013
+
1014
+ /**
1015
+ * Enables hash url navigation to for slides.
1016
+ * Object with hash navigation parameters or boolean `true` to enable with default settings
1017
+ *
1018
+ * @example
1019
+ * ```js
1020
+ * const swiper = new Swiper('.swiper', {
1021
+ * hashNavigation: {
1022
+ * replaceState: true,
1023
+ * },
1024
+ * });
1025
+ * ```
1026
+ */
1027
+ hashNavigation?: HashNavigationOptions | boolean;
1028
+
1029
+ /**
1030
+ * Enables history push state where every slide will have its own url. In this parameter you have to specify main slides url like `"slides"` and specify every slide url using `data-history` attribute.
1031
+ *
1032
+ * Object with history navigation parameters or boolean `true` to enable with default settings
1033
+ *
1034
+ * @example
1035
+ * ```js
1036
+ * const swiper = new Swiper('.swiper', {
1037
+ * history: {
1038
+ * replaceState: true,
1039
+ * },
1040
+ * });
1041
+ * ```
1042
+ *
1043
+ * @example
1044
+ * ```html
1045
+ * <!-- will produce "slides/slide1" url in browser history -->
1046
+ * <div class="swiper-slide" data-history="slide1"></div>
1047
+ * ```
1048
+ */
1049
+ history?: HistoryOptions | boolean;
1050
+
1051
+ /**
1052
+ * Enables navigation through slides using keyboard. Object with keyboard parameters or boolean `true` to enable with default settings
1053
+ *
1054
+ * @example
1055
+ * ```js
1056
+ * const swiper = new Swiper('.swiper', {
1057
+ * keyboard: {
1058
+ * enabled: true,
1059
+ * onlyInViewport: false,
1060
+ * },
1061
+ * });
1062
+ * ```
1063
+ */
1064
+ keyboard?: KeyboardOptions | boolean;
1065
+
1066
+ /**
1067
+ * Enables navigation through slides using mouse wheel. Object with mousewheel parameters or boolean `true` to enable with default settings
1068
+ *
1069
+ * @example
1070
+ * ```js
1071
+ * const swiper = new Swiper('.swiper', {
1072
+ * mousewheel: {
1073
+ * invert: true,
1074
+ * },
1075
+ * });
1076
+ * ```
1077
+ */
1078
+ mousewheel?: MousewheelOptions | boolean;
1079
+
1080
+ /**
1081
+ * Object with navigation parameters or boolean `true` to enable with default settings.
1082
+ *
1083
+ * @example
1084
+ * ```js
1085
+ * const swiper = new Swiper('.swiper', {
1086
+ * navigation: {
1087
+ * nextEl: '.swiper-button-next',
1088
+ * prevEl: '.swiper-button-prev',
1089
+ * },
1090
+ * });
1091
+ * ```
1092
+ */
1093
+ navigation?: NavigationOptions | boolean;
1094
+
1095
+ /**
1096
+ * Object with pagination parameters or boolean `true` to enable with default settings.
1097
+ *
1098
+ * @example
1099
+ * ```js
1100
+ * const swiper = new Swiper('.swiper', {
1101
+ * pagination: {
1102
+ * el: '.swiper-pagination',
1103
+ * type: 'bullets',
1104
+ * },
1105
+ * });
1106
+ * ```
1107
+ */
1108
+ pagination?: PaginationOptions | boolean;
1109
+
1110
+ /**
1111
+ * Object with parallax parameters or boolean `true` to enable with default settings.
1112
+ *
1113
+ * @example
1114
+ * ```js
1115
+ * const swiper = new Swiper('.swiper', {
1116
+ * parallax: true,
1117
+ * });
1118
+ * ```
1119
+ */
1120
+ parallax?: ParallaxOptions | boolean;
1121
+
1122
+ /**
1123
+ * Object with scrollbar parameters or boolean `true` to enable with default settings.
1124
+ *
1125
+ * @example
1126
+ * ```js
1127
+ * const swiper = new Swiper('.swiper', {
1128
+ * scrollbar: {
1129
+ * el: '.swiper-scrollbar',
1130
+ * draggable: true,
1131
+ * },
1132
+ * });
1133
+ * ```
1134
+ */
1135
+ scrollbar?: ScrollbarOptions | boolean;
1136
+
1137
+ /**
1138
+ * Object with thumbs component parameters
1139
+ *
1140
+ * @example
1141
+ * ```js
1142
+ * const swiper = new Swiper('.swiper', {
1143
+ * ...
1144
+ * thumbs: {
1145
+ * swiper: thumbsSwiper
1146
+ * }
1147
+ * });
1148
+ * ```
1149
+ */
1150
+ thumbs?: ThumbsOptions;
1151
+
1152
+ /**
1153
+ * Enables virtual slides functionality. Object with virtual slides parameters or boolean `true` to enable with default settings.
1154
+ *
1155
+ * @example
1156
+ * ```js
1157
+ * const swiper = new Swiper('.swiper', {
1158
+ * virtual: {
1159
+ * slides: ['Slide 1', 'Slide 2', 'Slide 3', 'Slide 4', 'Slide 5'],
1160
+ * },
1161
+ * });
1162
+ * ```
1163
+ */
1164
+ virtual?: VirtualOptions | boolean;
1165
+
1166
+ /**
1167
+ * Enables zooming functionality. Object with zoom parameters or boolean `true` to enable with default settings
1168
+ *
1169
+ * @example
1170
+ * ```js
1171
+ * const swiper = new Swiper('.swiper', {
1172
+ * zoom: {
1173
+ * maxRatio: 5,
1174
+ * },
1175
+ * });
1176
+ * ```
1177
+ */
1178
+ zoom?: ZoomOptions | boolean;
1179
+
1180
+ /**
1181
+ * Enables free mode functionality. Object with free mode parameters or boolean `true` to enable with default settings.
1182
+ *
1183
+ * @example
1184
+ * ```js
1185
+ * const swiper = new Swiper('.swiper', {
1186
+ * freeMode: true,
1187
+ * });
1188
+ *
1189
+ * const swiper = new Swiper('.swiper', {
1190
+ * freeMode: {
1191
+ * enabled: true,
1192
+ * sticky: true,
1193
+ * },
1194
+ * });
1195
+ * ```
1196
+ */
1197
+ freeMode?: FreeModeOptions | boolean;
1198
+
1199
+ /**
1200
+ * Object with grid parameters to enable "multirow" slider.
1201
+ *
1202
+ * @example
1203
+ * ```js
1204
+ * const swiper = new Swiper('.swiper', {
1205
+ * grid: {
1206
+ * rows: 2,
1207
+ * },
1208
+ * });
1209
+ * ```
1210
+ */
1211
+ grid?: GridOptions;
1212
+
1213
+ /**
1214
+ * !INTERNAL When enabled will emit "_containerClasses" and "_slideClass" events
1215
+ */
1216
+ _emitClasses?: boolean;
1217
+ }