Optionaloptions: SwiperOptionsOptional__Optional__Optional_Optional_Optional_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)
Optionalcurrent!INTERNAL
Optionaldestroyed!INTERNAL
OptionaldocumentSlider container HTML element
true if Swiper is enabled, false otherwise
Height of container
Optionalinitializedtrue if slider on most "left"/"top" position
Optionalistrue 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
OptionalmountedOptionalonOptionalonObject with original initialization parameters
OptionalparallaxObject with passed initialization parameters
Index number of previously active slide
OptionalpreviousOptionalpreviousCurrent progress of wrapper translate (from 0 to 1)
OptionalprogressIndex number of currently active slide considering rearranged slides in loop mode
!INTERNAL
Array of slides HTML elements. To get specific slide HTMLElement use swiper.slides[1]
Slides wrapper HTML element
Slides grid
Array of widths for slides
Slides snap grid
Index number of current snap in snapGrid
Direction of sliding
Object with the following touch event properties:
swiper.touches.startXswiper.touches.startYswiper.touches.currentXswiper.touches.currentYswiper.touches.diffOptionaltouchesCurrent value of wrapper translate
Width of container
Wrapper HTML element
StaticdefaultsStaticextendedAdd 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 language
New direction. Should be rtl or ltr
Destroy slider instance and detach all events listeners
OptionaldeleteInstance: booleanSet it to false (by default it is true) to not to delete Swiper instance
OptionalcleanStyles: booleanSet 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
!INTERNAL
Optionalbase: stringOptionalcontainerEl: HTMLElementGet current value of swiper wrapper css3 transform translate
Optionalaxis: "x" | "y"!INTERNAL
OptionalslideRealIndex: numberOptionalinitial: boolean!INTERNAL
Optionaloptions: {Get current maximal translate value
Get current minimal translate value
Optionalelement: string | HTMLElementRemove event handler
Optionalhandler: SwiperEvents[E]Optionalhandler: SwiperEventHandlerRemove event listener that will be fired on all events
Add event handler
Optionalpriority: booleanOptionalpriority: booleanAdd event listener that will be fired on all events
Optionalpriority: booleanAdd event handler that will be removed after it was fired
Optionalpriority: booleanOptionalpriority: booleanAdd 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
!INTERNAL
Set grab cursor
Optionalmoving: booleanSet 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).
Optionalspeed: numberTransition duration (in ms).
OptionalbyController: boolean | SwiperSet custom css3 transform's translate value for swiper wrapper
OptionalbyController: boolean | SwiperRun transition to next slide.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanRun transition to previous slide.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanReset swiper position to currently active slide for the duration equal to 'speed' parameter.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanGet dynamically calculated amount of slides per view, useful only when slidesPerView set to auto
Optionalview: "previous" | "current"Optionalexact: booleanRun transition to the slide with index number equal to 'index' parameter for the duration equal to 'speed' parameter.
Optionalindex: numberIndex number of slide.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanOptionalinitial: booleanReset swiper position to closest slide/snap point for the duration equal to 'speed' parameter.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanOptionalthreshold: numberDoes 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
Optionalindex: numberIndex number of slide.
Optionalspeed: numberTransition duration (in ms).
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events.
Optionalinternal: booleanOptionalrunCallbacks: booleanOptionaldirection: "reset" | "next" | "prev"OptionalrunCallbacks: booleanOptionaldirection: "reset" | "next" | "prev"Animate custom css3 transform's translate value for swiper wrapper
Optionaltranslate: numberTranslate value (in px)
Optionalspeed: numberTransition duration (in ms)
OptionalrunCallbacks: booleanSet it to false (by default it is true) and transition will not produce transition events
OptionaltranslateBounds: booleanSet it to false (by default it is true) and transition value can extend beyond min and max translate
Optionalinternal: booleanUnset 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:
OptionalnewActiveIndex: numberForce swiper to update its height (when autoHeight enabled) for the duration equal to 'speed' parameter
Optionalspeed: numberTransition duration (in ms).
Optionalpath: EventTarget[]recalculate swiper progress
Optionaltranslate: numberrecalculate 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
Optionaltranslate: numberStaticextendStaticinstallStaticuse
Index number of currently active slide