j1-template 2024.3.15 → 2024.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/data/amplitude.html +139 -68
- data/assets/data/banner.html +1 -1
- data/assets/data/cookieconsent.html +1 -1
- data/assets/data/docsearch.html +1 -1
- data/assets/data/fab.html +1 -1
- data/assets/data/footer.html +1 -1
- data/assets/data/galeries.html +1 -1
- data/assets/data/gallery_customizer.html +1 -1
- data/assets/data/gemini-ui.html +1 -1
- data/assets/data/iframes.html +1 -1
- data/assets/data/masonry.html +1 -1
- data/assets/data/masterslider.html +1 -1
- data/assets/data/menu.html +1 -1
- data/assets/data/mmenu.html +1 -1
- data/assets/data/mmenu_sidebar.html +1 -1
- data/assets/data/mmenu_toc.html +1 -1
- data/assets/data/panel.html +5 -4
- data/assets/data/quicklinks.html +1 -1
- data/assets/data/rtext_resizer.html +1 -1
- data/assets/data/slick.html +1 -1
- data/assets/data/speak2me.html +1 -1
- data/assets/data/swiper.html +313 -0
- data/assets/theme/j1/adapter/js/amplitude.30.js +1177 -0
- data/assets/theme/j1/adapter/js/amplitude.js +241 -191
- data/assets/theme/j1/adapter/js/j1.js +3 -3
- data/assets/theme/j1/adapter/js/masonry.js +2 -2
- data/assets/theme/j1/adapter/js/masterslider.js +2 -1
- data/assets/theme/j1/adapter/js/swiper.js +231 -0
- data/assets/theme/j1/adapter/js/videojs.js +212 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +7 -4
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -1
- data/assets/theme/j1/core/js/template.js +4 -0
- data/assets/theme/j1/core/js/template.min.js +2 -2
- data/assets/theme/j1/core/js/template.min.js.map +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +94 -4
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +3 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +72 -10
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +2 -1
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/artist.svg +78 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg +52 -20
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg +20 -39
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/now-playing.svg +24 -38
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-hide.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-music.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist-show.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/playlist.svg +85 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg +18 -37
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +33 -30
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +33 -29
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg +55 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg +56 -14
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg +38 -21
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.map +20 -20
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.15.js +1594 -0
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +1617 -89
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/bar.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/circular-equalizer.js +31 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/frequency-analyzer.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/michael-bromley.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/visualizations/template.js +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +206 -122
- data/assets/theme/j1/modules/photoswipe/.version_5.4.4 +6 -0
- data/assets/theme/j1/modules/photoswipe/LICENSE +21 -0
- data/assets/theme/j1/modules/photoswipe/README.md +32 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe-dynamic-caption-plugin.umd.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/css/org/photoswipe.css +420 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.css +67 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe-caption-plugin.min.css +16 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.css +376 -0
- data/assets/theme/j1/modules/photoswipe/css/photoswipe.min.css +17 -0
- data/assets/theme/j1/modules/photoswipe/css/scss/photoswipe.scss +427 -0
- data/assets/theme/j1/modules/photoswipe/example/photoswipe-caption-plugin.html +237 -0
- data/assets/theme/j1/modules/photoswipe/example/test-gallery.html +36 -0
- data/assets/theme/j1/modules/photoswipe/js/README.md +43 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-caption-plugin.min.js +5 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-core.min.js +18 -0
- data/assets/theme/j1/modules/photoswipe/js/photoswipe-lightbox.min.js +18 -0
- data/assets/theme/j1/modules/swiper/.version_1.2.0 +15 -0
- data/assets/theme/j1/modules/swiper/LICENSE +20 -0
- data/assets/theme/j1/modules/swiper/README.md +95 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.css +740 -0
- data/assets/theme/j1/modules/swiper/css/swiper-bundle.min..css +17 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.css +249 -0
- data/assets/theme/j1/modules/swiper/css/theme/uno.min.css +154 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.js +9785 -0
- data/assets/theme/j1/modules/swiper/js/swiper-bundle.min.js +17 -0
- data/assets/theme/j1/modules/swiper/swiperjs.com-demos.url +2 -0
- data/assets/theme/j1/modules/videojs/assets/icons/custom-icons/next.svg +82 -0
- data/assets/theme/j1/modules/videojs/css/font/README.md +151 -0
- data/assets/theme/j1/modules/videojs/css/font/VideoJS.svg +150 -0
- data/assets/theme/j1/modules/videojs/css/font/video-js-cdn.css +2012 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.0.css +32 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.1.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.css +31 -0
- data/assets/theme/j1/modules/videojs/css/plugins/controls/skipbuttons.min.css +21 -0
- data/assets/theme/j1/modules/videojs/css/themes/uno.css +14 -3
- data/assets/theme/j1/modules/videojs/css/themes/uno.min.css +1 -1
- data/assets/theme/j1/modules/videojs/css/videojs.css +1 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/LICENSE +13 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/README.md +75 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.js +149 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/autocaption/autocaption.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/README.md +76 -30
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.js +64 -53
- data/assets/theme/j1/modules/videojs/js/plugins/controls/hotkeys/hotkeys.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/README.md +133 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.js +137 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/skipbuttons/skipbuttons.min.js +21 -0
- data/assets/theme/j1/modules/videojs/js/plugins/controls/zoom/zoom.js +15 -12
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.js +43 -16
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.3/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.4/rubyeventmachine.so +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/config.rb +0 -4
- data/lib/starter_web/Gemfile +45 -22
- data/lib/starter_web/README.md +5 -5
- data/lib/starter_web/_config.yml +4 -6
- data/lib/starter_web/_data/modules/amplitude.yml +308 -363
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +60 -35
- data/lib/starter_web/_data/modules/defaults/gallery.yml +42 -0
- data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/swiper.yml +515 -0
- data/lib/starter_web/_data/modules/defaults/videojs.yml +107 -0
- data/lib/starter_web/_data/modules/gallery.yml +30 -14
- data/lib/starter_web/_data/modules/masonry.yml +15 -0
- data/lib/starter_web/_data/modules/swiper.yml +227 -0
- data/lib/starter_web/_data/modules/videojs.yml +57 -0
- data/lib/starter_web/_data/resources.yml +50 -16
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/tables/jekyll_variables.asciidoc +1 -0
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -0
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +141 -24
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +4 -1
- data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +313 -0
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +192 -17
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/der_unverzichtbare_feind.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/faelle_des_bnd/ein_diener_vieler_herren.jpg +0 -0
- data/lib/starter_web/assets/video/poster/youtube/the_piano/the-piano.jpg +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/_includes/attributes.asciidoc +45 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/200_photoswipe_parameters.asciidoc +510 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/210_photoswipe_lightbox_parameters.asciidoc +98 -0
- data/lib/starter_web/pages/public/_includes/documents/photoswipe/300_caption_plugin_for_photoSwipe.asciidoc +327 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_features.asciidoc +50 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_html_layout.asciidoc +122 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/100_swiper_initialization.asciidoc +53 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/110_swiper_common_options.asciidoc +43 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc +994 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_l_o.asciidoc +473 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_p_s.asciidoc +700 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_t_z.asciidoc +413 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/300_swiper_instance_properties.asciidoc +873 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/400_swiper_modules.asciidoc +2514 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/500_swiper_methods.asciidoc +989 -0
- data/lib/starter_web/pages/public/_includes/documents/swiper/600_swiper_events.asciidoc +1534 -0
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +89 -62
- data/lib/starter_web/pages/public/manuals/integrations/amplitudejs/amplitudejs-api.adoc +1 -1
- data/lib/starter_web/pages/public/manuals/integrations/videojs/youtube-api.adoc +1638 -0
- data/lib/starter_web/pages/public/photoswipe_api.adoc +150 -0
- data/lib/starter_web/pages/public/swiper_api.adoc +128 -0
- data/lib/starter_web/pages/public/swiper_tester.adoc +973 -0
- data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +5 -6
- data/lib/starter_web/pages/public/tools/previewer/preview_videojs.adoc +203 -0
- data/lib/starter_web/pages/{tour → public/tour}/modal_extentions.adoc +12 -5
- data/lib/starter_web/pages/{tour → public/tour}/play_audio.adoc +63 -15
- data/lib/starter_web/pages/{tour → public/tour}/play_video.adoc +79 -40
- data/lib/starter_web/pages/{tour → public/tour}/present_images.adoc +5 -5
- metadata +114 -41
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_pause.svg +0 -19
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/_play.svg +0 -18
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/show-playlist.svg +0 -15
- data/assets/theme/j1/modules/jqueryScrollbar/LICENSE +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/README.md +0 -28
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.css +0 -939
- data/assets/theme/j1/modules/jqueryScrollbar/css/scrollbar.min.css +0 -20
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.js +0 -851
- data/assets/theme/j1/modules/jqueryScrollbar/js/scrollbar.min.js +0 -36
- data/assets/theme/j1/modules/jqueryScrollbar/sass/scrollbar.scss +0 -806
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +0 -794
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/attributes.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/100_gistblock.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_left_warning.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_bottom_right_danger.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_central_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_left_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_full_height_right_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_left_info.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/410_top_right_success.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/419_advanced_modals_demo.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/tables/bs_modal_examples.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_bootstrap.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/_includes/documents/themes_rouge.asciidoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/asciidoc_extensions.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/bootstrap_themes.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/highlghter_rouge.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/icon_fonts.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/quicksearch.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/responsive_tables.adoc +0 -0
- /data/lib/starter_web/pages/{tour → public/tour}/typography.adoc +0 -0
data/lib/starter_web/pages/public/_includes/documents/swiper/200_swiper_parameters_a_k.asciidoc
ADDED
@@ -0,0 +1,994 @@
|
|
1
|
+
[role="mt-5"]
|
2
|
+
== Options A - K
|
3
|
+
List of available Swiper parameters (properties) alphabetically ordered
|
4
|
+
from *A* to *K*. Find parameter settings also with the
|
5
|
+
https://swiperjs.com/swiper-api[Swiper Documentation, {browser-window--new}].
|
6
|
+
|
7
|
+
[role="mt-4"]
|
8
|
+
=== a11y (Accessibility)
|
9
|
+
|
10
|
+
Enable and configure the *Accessibility* (a11y) module with *default* settings.
|
11
|
+
By using the module, SwiperJS slider accessibility is significantly *enhanced*
|
12
|
+
for *users* having *disabilities*.
|
13
|
+
|
14
|
+
[TIP]
|
15
|
+
====
|
16
|
+
Find all available configurable *settings* with <<Accessibility (a11y)>>
|
17
|
+
in section <<Modules>>.
|
18
|
+
====
|
19
|
+
|
20
|
+
// link:{swiper-modules--a11y}[Accessibility (a11y), {browser-window--new}]].
|
21
|
+
|
22
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable"]
|
23
|
+
|===
|
24
|
+
|Name |Type |Default |Description \| Example
|
25
|
+
|
26
|
+
|`a11y`
|
27
|
+
|any
|
28
|
+
|*no default*
|
29
|
+
|Object with a11y *parameters* or boolean `true` to *enable* the *module*
|
30
|
+
with *default* settings.
|
31
|
+
|
32
|
+
[source, js]
|
33
|
+
----
|
34
|
+
const swiper = new Swiper('.swiper', {
|
35
|
+
a11y: {
|
36
|
+
prevSlideMessage: 'Go to previous slide',
|
37
|
+
nextSlideMessage: 'Go to next slide',
|
38
|
+
firstSlideMessage: 'This is the first slide',
|
39
|
+
lastSlideMessage: 'This is the last slide'
|
40
|
+
}
|
41
|
+
});
|
42
|
+
----
|
43
|
+
|===
|
44
|
+
|
45
|
+
[role="mt-4"]
|
46
|
+
=== allowslideNext()
|
47
|
+
|
48
|
+
Enable or disable swiping to next slide.
|
49
|
+
|
50
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
51
|
+
|===
|
52
|
+
|Name |Type |Default |Description \| Example
|
53
|
+
|
54
|
+
|`allowslideNext()`
|
55
|
+
|boolean
|
56
|
+
|true
|
57
|
+
|Set to `false` to disable swiping to next slide direction (to right
|
58
|
+
or bottom).
|
59
|
+
|
60
|
+
|===
|
61
|
+
|
62
|
+
[role="mt-4"]
|
63
|
+
=== allowslidePrev()
|
64
|
+
|
65
|
+
Enable or disable swiping to previous slide.
|
66
|
+
|
67
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
68
|
+
|===
|
69
|
+
|Name |Type |Default |Description \| Example
|
70
|
+
|
71
|
+
|`allowslidePrev()`
|
72
|
+
|boolean
|
73
|
+
|true
|
74
|
+
|Set to `false` to disable swiping to previous slide direction (to left or
|
75
|
+
top).
|
76
|
+
|
77
|
+
|===
|
78
|
+
|
79
|
+
[role="mt-4"]
|
80
|
+
=== allowTouchMove
|
81
|
+
|
82
|
+
Control to switch slides by using API *methods* like *slidePrev()* or
|
83
|
+
*slideNext()*.
|
84
|
+
|
85
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
86
|
+
|===
|
87
|
+
|Name |Type |Default |Description \| Example
|
88
|
+
|
89
|
+
|`allowTouchMove`
|
90
|
+
|boolean
|
91
|
+
|true
|
92
|
+
|If `false`, then the only way to switch the slide is use of API *methods*
|
93
|
+
like *slidePrev()* or *slideNext()*.
|
94
|
+
|
95
|
+
|===
|
96
|
+
|
97
|
+
[role="mt-4"]
|
98
|
+
=== allowTouchMove
|
99
|
+
|
100
|
+
Control to switch slides by using API *methods* like
|
101
|
+
*slidePrev()* or *slideNext()*.
|
102
|
+
|
103
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
104
|
+
|===
|
105
|
+
|Name |Type |Default |Description \| Example
|
106
|
+
|
107
|
+
|`allowTouchMove`
|
108
|
+
|boolean
|
109
|
+
|true
|
110
|
+
|If `false`, then the only way to switch the slide is use of API *methods*
|
111
|
+
like *slidePrev()* or *slideNext()*.
|
112
|
+
|
113
|
+
|===
|
114
|
+
|
115
|
+
[role="mt-4"]
|
116
|
+
=== autoHeight
|
117
|
+
|
118
|
+
Set the *slider wrapper* to adapt its height from the height of the
|
119
|
+
currently active slide.
|
120
|
+
|
121
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
122
|
+
|===
|
123
|
+
|Name |Type |Default |Description \| Example
|
124
|
+
|
125
|
+
|`autoHeight`
|
126
|
+
|boolean
|
127
|
+
|false
|
128
|
+
|Set to `true` and slider wrapper will adapt its height to the height of
|
129
|
+
the currently active slide.
|
130
|
+
|
131
|
+
|===
|
132
|
+
|
133
|
+
[role="mt-4"]
|
134
|
+
=== autoplay
|
135
|
+
|
136
|
+
Enable and configure the Autoplay module for auto playing *behaviour* of a
|
137
|
+
SwiperJS slider.
|
138
|
+
|
139
|
+
[TIP]
|
140
|
+
====
|
141
|
+
Find all available configurable *settings* with <<Autoplay>> in
|
142
|
+
section hModules>>.
|
143
|
+
====
|
144
|
+
|
145
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
146
|
+
|===
|
147
|
+
|Name |Type |Default |Description \| Example
|
148
|
+
|
149
|
+
|`autoplay`
|
150
|
+
|any
|
151
|
+
|*no default*
|
152
|
+
|Object with autoplay parameters or boolean `true` to enable with
|
153
|
+
*default* settings.
|
154
|
+
|
155
|
+
[source, js]
|
156
|
+
----
|
157
|
+
const swiper = new Swiper('.swiper', {
|
158
|
+
autoplay: {
|
159
|
+
delay: 5000
|
160
|
+
}
|
161
|
+
});
|
162
|
+
----
|
163
|
+
|
164
|
+
|===
|
165
|
+
|
166
|
+
[role="mt-4"]
|
167
|
+
=== breakpoints
|
168
|
+
|
169
|
+
Allows to set parameters for responsive breakpoints.
|
170
|
+
|
171
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
172
|
+
|===
|
173
|
+
|Name |Type |Default |Description \| Example
|
174
|
+
|
175
|
+
|`breakpoints`
|
176
|
+
|object
|
177
|
+
|*no default*
|
178
|
+
|Allows to set different parameter for different responsive breakpoints
|
179
|
+
(screen sizes). Not all parameters can be changed in breakpoints, only
|
180
|
+
those which do not require different layout and logic, like
|
181
|
+
`slidesPerView`, `slidesPerGroup`, `spaceBetween`, `grid.rows`.
|
182
|
+
|
183
|
+
[CAUTION]
|
184
|
+
====
|
185
|
+
Parameters like `loop` and `effect` won't work.
|
186
|
+
====
|
187
|
+
|
188
|
+
[source, js]
|
189
|
+
----
|
190
|
+
const swiper = new Swiper('.swiper', {
|
191
|
+
// Default parameters
|
192
|
+
slidesPerView: 1,
|
193
|
+
spaceBetween: 10,
|
194
|
+
// Responsive breakpoints
|
195
|
+
breakpoints: {
|
196
|
+
// when window width is >= 320px
|
197
|
+
320: {
|
198
|
+
slidesPerView: 2,
|
199
|
+
spaceBetween: 20
|
200
|
+
},
|
201
|
+
// when window width is >= 480px
|
202
|
+
480: {
|
203
|
+
slidesPerView: 3,
|
204
|
+
spaceBetween: 30
|
205
|
+
},
|
206
|
+
// when window width is >= 640px
|
207
|
+
640: {
|
208
|
+
slidesPerView: 4,
|
209
|
+
spaceBetween: 40
|
210
|
+
}
|
211
|
+
}
|
212
|
+
});
|
213
|
+
----
|
214
|
+
|
215
|
+
[source, js]
|
216
|
+
----
|
217
|
+
const swiper = new Swiper('.swiper', {
|
218
|
+
slidesPerView: 1,
|
219
|
+
spaceBetween: 10,
|
220
|
+
// using "ratio" endpoints
|
221
|
+
breakpoints: {
|
222
|
+
'@0.75': {
|
223
|
+
slidesPerView: 2,
|
224
|
+
spaceBetween: 20,
|
225
|
+
},
|
226
|
+
'@1.00': {
|
227
|
+
slidesPerView: 3,
|
228
|
+
spaceBetween: 40,
|
229
|
+
},
|
230
|
+
'@1.50': {
|
231
|
+
slidesPerView: 4,
|
232
|
+
spaceBetween: 50,
|
233
|
+
}
|
234
|
+
}
|
235
|
+
});
|
236
|
+
----
|
237
|
+
|
238
|
+
|===
|
239
|
+
|
240
|
+
[role="mt-4"]
|
241
|
+
=== breakpointsBase
|
242
|
+
|
243
|
+
Specify the base for breakpoints.
|
244
|
+
|
245
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
246
|
+
|===
|
247
|
+
|Name |Type |Default |Description \| Example
|
248
|
+
|
249
|
+
|`breakpointsBase`
|
250
|
+
|any
|
251
|
+
|_window_
|
252
|
+
|Base for breakpoints. Can be _window_ or _container_. If set to _window_
|
253
|
+
(by default) then breakpoint keys mean *window width*. If set to `container`
|
254
|
+
then breakpoint keys treated as *swiper container width*.
|
255
|
+
|
256
|
+
|===
|
257
|
+
|
258
|
+
[role="mt-4"]
|
259
|
+
=== cardsEffect
|
260
|
+
|
261
|
+
Specify Cards-effect parameters.
|
262
|
+
|
263
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
264
|
+
|===
|
265
|
+
|Name |Type |Default |Description \| Example
|
266
|
+
|
267
|
+
|`cardsEffect`
|
268
|
+
|any
|
269
|
+
|*no default*
|
270
|
+
|Object with Cards-effect parameters.
|
271
|
+
|
272
|
+
[source, js]
|
273
|
+
----
|
274
|
+
const swiper = new Swiper('.swiper', {
|
275
|
+
effect: 'cards',
|
276
|
+
cardsEffect: {
|
277
|
+
// ...
|
278
|
+
}
|
279
|
+
});
|
280
|
+
----
|
281
|
+
|===
|
282
|
+
|
283
|
+
[role="mt-4"]
|
284
|
+
=== centerInsufficientSlides
|
285
|
+
|
286
|
+
Enabe or disable to center slides.
|
287
|
+
|
288
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
289
|
+
|===
|
290
|
+
|Name |Type |Default |Description \| Example
|
291
|
+
|
292
|
+
|`centerInsufficientSlides`
|
293
|
+
|boolean
|
294
|
+
|false
|
295
|
+
|When enabled it center slides if the amount of *slides less* than
|
296
|
+
`slidesPerView`.
|
297
|
+
|
298
|
+
[CAUTION]
|
299
|
+
====
|
300
|
+
Not intended to be used in `loop` mode and `grid.rows`.
|
301
|
+
====
|
302
|
+
|
303
|
+
|===
|
304
|
+
|
305
|
+
[role="mt-4"]
|
306
|
+
=== centeredSlides
|
307
|
+
|
308
|
+
Control to center *active* slides.
|
309
|
+
|
310
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
311
|
+
|===
|
312
|
+
|Name |Type |Default |Description \| Example
|
313
|
+
|
314
|
+
|`centeredSlides`
|
315
|
+
|boolean
|
316
|
+
|false
|
317
|
+
|If `true`, then active slide will be centered, not always on the left
|
318
|
+
side.
|
319
|
+
|
320
|
+
|===
|
321
|
+
|
322
|
+
[role="mt-4"]
|
323
|
+
=== centeredSlidesBounds
|
324
|
+
|
325
|
+
Control to center *active* slides without adding gaps.
|
326
|
+
|
327
|
+
[CAUTION]
|
328
|
+
====
|
329
|
+
Not intended to be used with `loop` or `pagination`.
|
330
|
+
====
|
331
|
+
|
332
|
+
|
333
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
334
|
+
|===
|
335
|
+
|Name |Type |Default |Description \| Example
|
336
|
+
|
337
|
+
|`centeredSlidesBounds`
|
338
|
+
|boolean
|
339
|
+
|false
|
340
|
+
|If `true`, then active slide will be centered without adding gaps at
|
341
|
+
the beginning and end of slider.
|
342
|
+
|
343
|
+
[CAUTION]
|
344
|
+
====
|
345
|
+
Required: `centeredSlides: true`.
|
346
|
+
|
347
|
+
Not intended to be used with `loop` or `pagination`.
|
348
|
+
====
|
349
|
+
|
350
|
+
|===
|
351
|
+
|
352
|
+
|
353
|
+
[role="mt-4"]
|
354
|
+
=== containerModifierClass
|
355
|
+
|
356
|
+
The *beginning* of the modifier CSS class to center slides.
|
357
|
+
|
358
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
359
|
+
|===
|
360
|
+
|Name |Type |Default |Description \| Example
|
361
|
+
|
362
|
+
|`containerModifierClass`
|
363
|
+
|string
|
364
|
+
|swiper-
|
365
|
+
|The *beginning* of the modifier CSS class that can be added to swiper
|
366
|
+
container depending on different parameters.
|
367
|
+
|
368
|
+
|===
|
369
|
+
|
370
|
+
[role="mt-4"]
|
371
|
+
=== controller
|
372
|
+
|
373
|
+
Set Swiper *controller* parameters.
|
374
|
+
|
375
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
376
|
+
|===
|
377
|
+
|Name |Type |Default |Description \| Example
|
378
|
+
|
379
|
+
|`controller`
|
380
|
+
|any
|
381
|
+
|*no default*
|
382
|
+
|Object with controller parameters or boolean `true` to enable with
|
383
|
+
*default* settings.
|
384
|
+
|
385
|
+
[source, js]
|
386
|
+
----
|
387
|
+
const swiper = new Swiper('.swiper', {
|
388
|
+
controller: {
|
389
|
+
inverse: true
|
390
|
+
}
|
391
|
+
});
|
392
|
+
----
|
393
|
+
|
394
|
+
|===
|
395
|
+
|
396
|
+
[role="mt-4"]
|
397
|
+
=== coverflowEffect
|
398
|
+
|
399
|
+
Set Overflow Effect parameters.
|
400
|
+
|
401
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
402
|
+
|===
|
403
|
+
|Name |Type |Default |Description \| Example
|
404
|
+
|
405
|
+
|`coverflowEffect`
|
406
|
+
|any
|
407
|
+
|*no default*
|
408
|
+
|Object with Coverflow-effect parameters.
|
409
|
+
|
410
|
+
[source, js]
|
411
|
+
----
|
412
|
+
const swiper = new Swiper('.swiper', {
|
413
|
+
effect: 'coverflow',
|
414
|
+
coverflowEffect: {
|
415
|
+
rotate: 30,
|
416
|
+
slideShadows: false
|
417
|
+
}
|
418
|
+
});
|
419
|
+
----
|
420
|
+
|
421
|
+
|===
|
422
|
+
|
423
|
+
[role="mt-4"]
|
424
|
+
=== createElements
|
425
|
+
|
426
|
+
Control how to wrap slides by an swiper-wrapper element.
|
427
|
+
|
428
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
429
|
+
|===
|
430
|
+
|Name |Type |Default |Description \| Example
|
431
|
+
|
432
|
+
|`createElements`
|
433
|
+
|boolean
|
434
|
+
|false
|
435
|
+
|When enabled, Swiper will automatically wrap slides with swiper-wrapper
|
436
|
+
element, and will create required elements for navigation, pagination
|
437
|
+
and scrollbar they are enabled (with their respective params object or
|
438
|
+
with boolean `true`).
|
439
|
+
|
440
|
+
|===
|
441
|
+
|
442
|
+
[role="mt-4"]
|
443
|
+
=== creativeEffect
|
444
|
+
|
445
|
+
Set creative effect parameters.
|
446
|
+
|
447
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
448
|
+
|===
|
449
|
+
|Name |Type |Default |Description \| Example
|
450
|
+
|
451
|
+
|`creativeEffect`
|
452
|
+
|any
|
453
|
+
|*no default*
|
454
|
+
|Object with Creative-effect parameters
|
455
|
+
|
456
|
+
[source, js]
|
457
|
+
----
|
458
|
+
const swiper = new Swiper('.swiper', {
|
459
|
+
effect: 'creative',
|
460
|
+
creativeEffect: {
|
461
|
+
prev: {
|
462
|
+
// will set `translateZ(-400px)` on previous slides
|
463
|
+
translate: [0, 0, -400],
|
464
|
+
},
|
465
|
+
next: {
|
466
|
+
// will set `translateX(100%)` on next slides
|
467
|
+
translate: ['100%', 0, 0],
|
468
|
+
}
|
469
|
+
}
|
470
|
+
});
|
471
|
+
----
|
472
|
+
|
473
|
+
|===
|
474
|
+
|
475
|
+
[role="mt-4"]
|
476
|
+
=== cssMode
|
477
|
+
|
478
|
+
Enable or disable CSS *Scroll Snap API*.
|
479
|
+
|
480
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
481
|
+
|===
|
482
|
+
|Name |Type |Default |Description \| Example
|
483
|
+
|
484
|
+
|`cssMode`
|
485
|
+
|boolean
|
486
|
+
|false
|
487
|
+
| When enabled, Swiper will use modern CSS Scroll Snap API. It doesn't support
|
488
|
+
*all* of Swiper's features, but potentially should bring a much better
|
489
|
+
*performance* in simple configurations.
|
490
|
+
|
491
|
+
This is what is not supported when it is enabled:
|
492
|
+
|
493
|
+
* *Cube* effect
|
494
|
+
* Parameter `speed` may not have no effect
|
495
|
+
* All *transition start\|end* related events. Use `slideChange` instead
|
496
|
+
* Parameter `slidesPerGroup` has limited support
|
497
|
+
* Parameter `simulateTouch` doesn't have effect and "dragging" with mouse doesn't work
|
498
|
+
* Parameter `resistance` doesn't have any effect
|
499
|
+
* Parameter `allowslidePrev()/Next`
|
500
|
+
* Parameter `swipeHandler`
|
501
|
+
|
502
|
+
In case if you use it with other effects, especially *3D effects*, it is
|
503
|
+
required to wrap slide's content with a
|
504
|
+
*<div className="swiper-slide-transform">* element. And if you use any
|
505
|
+
custom styles on slides (like background colors, border radius, border,
|
506
|
+
etc.), they should be set on `swiper-slide-transform` element instead.
|
507
|
+
|
508
|
+
[source, html]
|
509
|
+
----
|
510
|
+
<div class="swiper">
|
511
|
+
<div class="swiper-wrapper">
|
512
|
+
<div class="swiper-slide">
|
513
|
+
<!-- wrap slide content with transform element -->
|
514
|
+
<div class="swiper-slide-transform">
|
515
|
+
... slide content ...
|
516
|
+
</div>
|
517
|
+
</div>
|
518
|
+
...
|
519
|
+
</div>
|
520
|
+
</div>
|
521
|
+
|
522
|
+
<script>
|
523
|
+
const swiper = new Swiper('.swiper', {
|
524
|
+
effect: 'flip',
|
525
|
+
cssMode: true
|
526
|
+
});
|
527
|
+
</script>
|
528
|
+
----
|
529
|
+
|
530
|
+
|===
|
531
|
+
|
532
|
+
[role="mt-4"]
|
533
|
+
=== cubeEffect
|
534
|
+
|
535
|
+
Set cube effect parameters.
|
536
|
+
|
537
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
538
|
+
|===
|
539
|
+
|Name |Type |Default |Description \| Example
|
540
|
+
|
541
|
+
|`cubeEffect`
|
542
|
+
|any
|
543
|
+
|*no default*
|
544
|
+
|Object with Cube-effect parameters
|
545
|
+
|
546
|
+
[source, js]
|
547
|
+
----
|
548
|
+
const swiper = new Swiper('.swiper', {
|
549
|
+
effect: 'cube',
|
550
|
+
cubeEffect: {
|
551
|
+
slideShadows: false
|
552
|
+
}
|
553
|
+
});
|
554
|
+
----
|
555
|
+
|
556
|
+
|===
|
557
|
+
|
558
|
+
[role="mt-4"]
|
559
|
+
=== direction
|
560
|
+
|
561
|
+
Set the direction for Swipoer sliders.
|
562
|
+
|
563
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
564
|
+
|===
|
565
|
+
|Name |Type |Default |Description \| Example
|
566
|
+
|
567
|
+
|`direction`
|
568
|
+
|horizontal \| vertical
|
569
|
+
|horizontal
|
570
|
+
|Can be `horizontal` or `vertical` for vertical sliders.
|
571
|
+
|
572
|
+
|===
|
573
|
+
|
574
|
+
[role="mt-4"]
|
575
|
+
=== edgeSwipeDetection
|
576
|
+
|
577
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
578
|
+
|===
|
579
|
+
|Name |Type |Default |Description \| Example
|
580
|
+
|
581
|
+
|`edgeSwipeDetection`
|
582
|
+
|string \| boolean
|
583
|
+
|false
|
584
|
+
|Enable to release Swiper events for swipe-back work in app. If
|
585
|
+
set to `prevent` (string) then it will prevent system swipe-back navigation
|
586
|
+
instead. This feature works only with *touch* events (*not* pointer
|
587
|
+
events), so it will work on iOS/Android devices and won't work on
|
588
|
+
Windows devices with pointer (touch) events.
|
589
|
+
|
590
|
+
|===
|
591
|
+
|
592
|
+
[role="mt-4"]
|
593
|
+
=== edgeSwipeThreshold
|
594
|
+
|
595
|
+
Area (in px) from left edge of the screen to release touch events.
|
596
|
+
|
597
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
598
|
+
|===
|
599
|
+
|Name |Type |Default |Description \| Example
|
600
|
+
|
601
|
+
|`edgeSwipeThreshold`
|
602
|
+
|number
|
603
|
+
|20
|
604
|
+
|Area (in px) from left edge of the screen to release touch events for
|
605
|
+
swipe-back in app.
|
606
|
+
|
607
|
+
|===
|
608
|
+
|
609
|
+
[role="mt-4"]
|
610
|
+
=== effect
|
611
|
+
|
612
|
+
Set slide transition effects.
|
613
|
+
|
614
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
615
|
+
|===
|
616
|
+
|Name |Type |Default |Description \| Example
|
617
|
+
|
618
|
+
|`effect`
|
619
|
+
|string
|
620
|
+
|_slide_
|
621
|
+
|Transition effect. Can be `slide`, `fade`, `cube`, `coverflow`, `flip`,
|
622
|
+
`creative` or `cards`.
|
623
|
+
|
624
|
+
|===
|
625
|
+
|
626
|
+
[role="mt-4"]
|
627
|
+
=== enabled
|
628
|
+
|
629
|
+
Control if a Swiper slideshow is initially enabled.
|
630
|
+
|
631
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
632
|
+
|===
|
633
|
+
|Name |Type |Default |Description \| Example
|
634
|
+
|
635
|
+
|`enabled`
|
636
|
+
|boolean
|
637
|
+
|true
|
638
|
+
|Whether Swiper initially enabled. When Swiper is disabled, it will hide
|
639
|
+
all navigation elements and won't respond to any events and interactions.
|
640
|
+
|
641
|
+
|===
|
642
|
+
|
643
|
+
[role="mt-4"]
|
644
|
+
=== eventsPrefix
|
645
|
+
|
646
|
+
Cntrol event name prefix for all Swiper DOM events.
|
647
|
+
|
648
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
649
|
+
|===
|
650
|
+
|Name |Type |Default |Description \| Example
|
651
|
+
|
652
|
+
|`eventsPrefix`
|
653
|
+
|string
|
654
|
+
|_swiper_
|
655
|
+
|Event name prefix for all DOM events emitted by Swiper Element.
|
656
|
+
|
657
|
+
|===
|
658
|
+
|
659
|
+
[role="mt-4"]
|
660
|
+
=== fadeEffect
|
661
|
+
|
662
|
+
Set fade effect parameters.
|
663
|
+
|
664
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
665
|
+
|===
|
666
|
+
|Name |Type |Default |Description \| Example
|
667
|
+
|
668
|
+
|`fadeEffect`
|
669
|
+
|any
|
670
|
+
|*no default*
|
671
|
+
|Object with Fade-effect parameters
|
672
|
+
|
673
|
+
[source, js]
|
674
|
+
----
|
675
|
+
const swiper = new Swiper('.swiper', {
|
676
|
+
effect: 'fade',
|
677
|
+
fadeEffect: {
|
678
|
+
crossFade: true
|
679
|
+
}
|
680
|
+
});
|
681
|
+
----
|
682
|
+
|
683
|
+
|===
|
684
|
+
|
685
|
+
[role="mt-4"]
|
686
|
+
=== flipEffect
|
687
|
+
|
688
|
+
Set flip effect parameters.
|
689
|
+
|
690
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
691
|
+
|===
|
692
|
+
|Name |Type |Default |Description \| Example
|
693
|
+
|
694
|
+
|`flipEffect`
|
695
|
+
|any
|
696
|
+
|*no default*
|
697
|
+
|Object with Flip-effect parameters
|
698
|
+
|
699
|
+
[source, js]
|
700
|
+
----
|
701
|
+
const swiper = new Swiper('.swiper', {
|
702
|
+
effect: 'flip',
|
703
|
+
flipEffect: {
|
704
|
+
slideShadows: false
|
705
|
+
}
|
706
|
+
});
|
707
|
+
----
|
708
|
+
|===
|
709
|
+
|
710
|
+
[role="mt-4"]
|
711
|
+
=== focusableElements
|
712
|
+
|
713
|
+
Set CSS selector for focusable elements.
|
714
|
+
|
715
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
716
|
+
|===
|
717
|
+
|Name |Type |Default |Description \| Example
|
718
|
+
|
719
|
+
|`focusableElements`
|
720
|
+
|string
|
721
|
+
|_input_ \| _select_ \| _option_ \| _textarea_ \| _button_ \| _video_ \| _label_
|
722
|
+
|CSS selector for focusable elements. Swiping will be disabled on
|
723
|
+
such elements if they are *focused*.
|
724
|
+
|
725
|
+
|===
|
726
|
+
|
727
|
+
[role="mt-4"]
|
728
|
+
=== followFinger
|
729
|
+
|
730
|
+
Set slider animated only when you release it.
|
731
|
+
|
732
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
733
|
+
|===
|
734
|
+
|Name |Type |Default |Description \| Example
|
735
|
+
|
736
|
+
|`followFinger`
|
737
|
+
|boolean
|
738
|
+
|true
|
739
|
+
|If disabled, then slider will be animated only when you release it,
|
740
|
+
it will not move while you hold your finger on it.
|
741
|
+
|
742
|
+
|===
|
743
|
+
|
744
|
+
[role="mt-4"]
|
745
|
+
=== freeMode
|
746
|
+
|
747
|
+
Enables or disables free mode functionality.
|
748
|
+
|
749
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
750
|
+
|===
|
751
|
+
|Name |Type |Default |Description \| Example
|
752
|
+
|
753
|
+
|`freeMode`
|
754
|
+
|any
|
755
|
+
|*no default*
|
756
|
+
|Enables free mode functionality. Object with free mode parameters or
|
757
|
+
boolean `true` to enable with *default* settings.
|
758
|
+
|
759
|
+
[source, js]
|
760
|
+
----
|
761
|
+
const swiper = new Swiper('.swiper', {
|
762
|
+
freeMode: true
|
763
|
+
});
|
764
|
+
|
765
|
+
const swiper = new Swiper('.swiper', {
|
766
|
+
freeMode: {
|
767
|
+
enabled: true,
|
768
|
+
sticky: true
|
769
|
+
},
|
770
|
+
});
|
771
|
+
----
|
772
|
+
|
773
|
+
|===
|
774
|
+
|
775
|
+
[role="mt-4"]
|
776
|
+
=== grabCursor
|
777
|
+
|
778
|
+
Improve desktop usability by setting the *grab cursor* when hover on Swiper.
|
779
|
+
|
780
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
781
|
+
|===
|
782
|
+
|Name |Type |Default |Description \| Example
|
783
|
+
|
784
|
+
|`grabCursor`
|
785
|
+
|boolean
|
786
|
+
|false
|
787
|
+
|This option may a little improve desktop usability. If `true`, user
|
788
|
+
will see the *grab cursor* when hover on Swiper.
|
789
|
+
|
790
|
+
|===
|
791
|
+
|
792
|
+
|
793
|
+
[role="mt-4"]
|
794
|
+
=== grid
|
795
|
+
|
796
|
+
Enable *multirow* slider.
|
797
|
+
|
798
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
799
|
+
|===
|
800
|
+
|Name |Type |Default |Description \| Example
|
801
|
+
|
802
|
+
|`grid`
|
803
|
+
|any
|
804
|
+
|*no default*
|
805
|
+
|Object with grid parameters to enable *multirow* slider.
|
806
|
+
|
807
|
+
[source, js]
|
808
|
+
----
|
809
|
+
const swiper = new Swiper('.swiper', {
|
810
|
+
grid: {
|
811
|
+
rows: 2
|
812
|
+
}
|
813
|
+
});
|
814
|
+
----
|
815
|
+
|
816
|
+
|===
|
817
|
+
|
818
|
+
[role="mt-4"]
|
819
|
+
=== hashNavigation
|
820
|
+
|
821
|
+
Enables or disables hash url navigation for slides.
|
822
|
+
|
823
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
824
|
+
|===
|
825
|
+
|Name |Type |Default |Description \| Example
|
826
|
+
|
827
|
+
|`hashNavigation`
|
828
|
+
|any
|
829
|
+
|*no default*
|
830
|
+
|Enables hash url navigation for slides. Object with hash navigation
|
831
|
+
parameters or boolean `true` to enable with *default* settings.
|
832
|
+
|
833
|
+
[source, js]
|
834
|
+
----
|
835
|
+
const swiper = new Swiper('.swiper', {
|
836
|
+
hashNavigation: {
|
837
|
+
replaceState: true
|
838
|
+
}
|
839
|
+
});
|
840
|
+
----
|
841
|
+
|
842
|
+
|===
|
843
|
+
|
844
|
+
[role="mt-4"]
|
845
|
+
=== height
|
846
|
+
|
847
|
+
Force Swiper height.
|
848
|
+
|
849
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
850
|
+
|===
|
851
|
+
|Name |Type |Default |Description \| Example
|
852
|
+
|
853
|
+
|height
|
854
|
+
|null \| number
|
855
|
+
|null
|
856
|
+
|Swiper height (in px). Parameter allows to force Swiper height. Useful
|
857
|
+
only if you initialize Swiper when it is hidden and in SSR and Test
|
858
|
+
environments for correct Swiper initialization
|
859
|
+
|
860
|
+
[CAUTION]
|
861
|
+
====
|
862
|
+
Setting this parameter will make Swiper *not responsive*.
|
863
|
+
====
|
864
|
+
|
865
|
+
|===
|
866
|
+
|
867
|
+
[role="mt-4"]
|
868
|
+
=== history
|
869
|
+
|
870
|
+
Enables history push state.
|
871
|
+
|
872
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
873
|
+
|===
|
874
|
+
|Name |Type |Default |Description \| Example
|
875
|
+
|
876
|
+
|`history`
|
877
|
+
|any
|
878
|
+
|*no default*
|
879
|
+
|Enables history push state where every slide will have its own url. In
|
880
|
+
this parameter you have to specify main slides url like `slides` and
|
881
|
+
specify every slide url using `data-history` attribute.
|
882
|
+
|
883
|
+
Object with history navigation parameters or boolean `true` to enable
|
884
|
+
with default settings.
|
885
|
+
|
886
|
+
[source, js]
|
887
|
+
----
|
888
|
+
const swiper = new Swiper('.swiper', {
|
889
|
+
history: {
|
890
|
+
replaceState: true
|
891
|
+
}
|
892
|
+
});
|
893
|
+
----
|
894
|
+
|
895
|
+
[source, html]
|
896
|
+
----
|
897
|
+
<!-- will produce "slides/slide1" url in browser history -->
|
898
|
+
<div class="swiper-slide" data-history="slide1"></div>
|
899
|
+
----
|
900
|
+
|
901
|
+
|===
|
902
|
+
|
903
|
+
[role="mt-4"]
|
904
|
+
=== init
|
905
|
+
|
906
|
+
Specify, if Swiper should be initialised automatically.
|
907
|
+
|
908
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
909
|
+
|===
|
910
|
+
|Name |Type |Default |Description \| Example
|
911
|
+
|
912
|
+
|`init`
|
913
|
+
|boolean
|
914
|
+
|true
|
915
|
+
|Whether Swiper should be initialised automatically when you create an
|
916
|
+
instance. If disabled, then you need to init it manually by calling
|
917
|
+
`swiper.init()`.
|
918
|
+
|
919
|
+
|===
|
920
|
+
|
921
|
+
[role="mt-4"]
|
922
|
+
=== initialSlide
|
923
|
+
|
924
|
+
Set the index number of the initial slide.
|
925
|
+
|
926
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
927
|
+
|===
|
928
|
+
|Name |Type |Default |Description \| Example
|
929
|
+
|
930
|
+
|`initialSlide`
|
931
|
+
|number
|
932
|
+
|0
|
933
|
+
|Index number of the initial slide.
|
934
|
+
|
935
|
+
|===
|
936
|
+
|
937
|
+
[role="mt-4"]
|
938
|
+
=== injectStyles
|
939
|
+
|
940
|
+
Inject text styles to the shadow DOM.
|
941
|
+
|
942
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
943
|
+
|===
|
944
|
+
|Name |Type |Default |Description \| Example
|
945
|
+
|
946
|
+
|`injectStyles`
|
947
|
+
|string[]
|
948
|
+
|*no default*
|
949
|
+
|Inject text styles to the shadow DOM. Only for usage with Swiper Element.
|
950
|
+
|
951
|
+
|===
|
952
|
+
|
953
|
+
[role="mt-4"]
|
954
|
+
=== injectStylesUrls
|
955
|
+
|
956
|
+
Inject styles `<link>`s to the shadow DOM.
|
957
|
+
|
958
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
959
|
+
|===
|
960
|
+
|Name |Type |Default |Description \| Example
|
961
|
+
|
962
|
+
|`injectStylesUrls`
|
963
|
+
|string[]
|
964
|
+
|*no default*
|
965
|
+
|Inject styles `<link>`s to the shadow DOM. Only for usage with Swiper Element.
|
966
|
+
|
967
|
+
|===
|
968
|
+
|
969
|
+
[role="mt-4"]
|
970
|
+
=== keyboard
|
971
|
+
|
972
|
+
Enables or disables navigation through slides using keyboard.
|
973
|
+
|
974
|
+
[cols="3,2,2,5a", subs=+macros, options="header", width="100%", role="rtable mt-4"]
|
975
|
+
|===
|
976
|
+
|Name |Type |Default |Description \| Example
|
977
|
+
|
978
|
+
|`keyboard`
|
979
|
+
|any
|
980
|
+
|*no default*
|
981
|
+
|Enables navigation through slides using keyboard. Object with keyboard
|
982
|
+
parameters or boolean `true` to enable with *default* settings.
|
983
|
+
|
984
|
+
[source, js]
|
985
|
+
----
|
986
|
+
const swiper = new Swiper('.swiper', {
|
987
|
+
keyboard: {
|
988
|
+
enabled: true,
|
989
|
+
onlyInViewport: false
|
990
|
+
}
|
991
|
+
});
|
992
|
+
----
|
993
|
+
|
994
|
+
|===
|