Where Swiper applies to.
Instance options.
Dom7 element with slider container HTML element. To get vanilla HTMLElement use swiper.el
Dom7 element with slider wrapper HTML element. To get vanilla HTMLElement use swiper.wrapperEl
Index number of currently active slide
Disable / enable ability to slide to the next slides by assigning false
/ true
to this property
Disable / enable ability to slide to the previous slides by assigning false
/ true
to this property
Disable / enable ability move slider by grabbing it with mouse or by touching it with finger (on touch screens) by assigning false
/ true
to this property
true
if swiper is in transition
Index number of last clicked slide
Link to last clicked slide (HTMLElement)
!INTERNAL
!INTERNAL
Slider container HTML element
Height of container
true
if slider on most "left"/"top" position
true
if slider on most "right"/"bottom" position
true
if slide is "locked" (by watchOverflow
) and slides can not be, e.g. when amount of slides is less that slides per view
!INTERNAL
!INTERNAL
Object with original initialization parameters
Object with passed initialization parameters
Index number of previously active slide
Current progress of wrapper translate (from 0 to 1)
Index number of currently active slide considering duplicated slides in loop mode
!INTERNAL
Dom7 array-like collection of slides HTML elements. To get specific slide HTMLElement use swiper.slides[1]
Slides snap grid
Index number of current snap in snapGrid
Direction of sliding
Object with the following touch event properties:
swiper.touches.startX
swiper.touches.startY
swiper.touches.currentX
swiper.touches.currentY
swiper.touches.diff
Current value of wrapper translate
Width of container
Wrapper HTML element
Swiper default options
Object with global Swiper extended options
Add new slides to the required index. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:
Add new slides to the end. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:
Attach all events listeners again
Changes slider direction from horizontal to vertical and back.
New direction. If not specified, then will automatically changed to opposite direction
Will call swiper.update(). Default true
Changes slider language
New direction. Should be rtl
or ltr
Destroy slider instance and detach all events listeners
Set it to false (by default it is true) to not to delete Swiper instance
Set it to true (by default it is true) and all custom styles will be removed from slides, wrapper and container. Useful if you need to destroy Swiper and to init again with new options or in different direction
Detach all events listeners
Disable Swiper (if it was enabled). When Swiper is disabled, it will hide all navigation elements and won't respond to any events and interactions
Fire event on instance
Enable Swiper (if it was disabled)
!INTERNAL
Get current value of swiper wrapper css3 transform translate
Initialize slider
!INTERNAL
!INTERNAL
!INTERNAL
Remove event handler
Remove all handlers for specified event
Remove event listener that will be fired on all events
Add event handler
Add event listener that will be fired on all events
Add event handler that will be removed after it was fired
Add new slides to the beginning. slides could be HTMLElement or HTML string with new slide or array with such slides, for example:
Remove all slides
Remove selected slides. slideIndex could be a number with slide index to remove or array with indexes.
!INTERNAL
Set grab cursor
Set Swiper translate progress (from 0 to 1). Where 0 - its initial position (offset) on first slide, and 1 - its maximum position (offset) on last slide
Swiper translate progress (from 0 to 1).
Transition duration (in ms).
Set custom css3 transform's translate value for swiper wrapper
Run transition to next slide.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Run transition to previous slide.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Reset swiper position to currently active slide for the duration equal to 'speed' parameter.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Run transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
Index number of slide.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Reset swiper position to closest slide/snap point for the duration equal to 'speed' parameter.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Does the same as .slideTo but for the case when used with enabled loop. So this method will slide to slides with realIndex matching to passed index
Index number of slide.
Transition duration (in ms).
Set it to false (by default it is true) and transition will not produce transition events.
Animate custom css3 transform's translate value for swiper wrapper
Translate value (in px)
Transition duration (in ms)
Set it to false (by default it is true) and transition will not produce transition events
Set it to false (by default it is true) and transition value can extend beyond min and max translate
Unset grab cursor
You should call it after you add/remove slides manually, or after you hide/show it, or do any custom DOM modifications with Swiper This method also includes subcall of the following methods which you can use separately:
Force swiper to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
Transition duration (in ms).
recalculate swiper progress
recalculate size of swiper container
recalculate number of slides and their offsets. Useful after you add/remove slides with JavaScript
update active/prev/next classes on slides and bullets
Extend global Swiper defaults
Installs modules on Swiper in runtime.
Generated using TypeDoc
Constructs a new Swiper instance.