Hero slider
Navigation, pagination, scrollbar, keyboard, mousewheel, a11y, autoplay, zoom, thumbs and slide manipulation.
- Active index
- ${activeIndex}
- Real index
- ${realIndex}
- Progress
- ${progress}
- Translate
- ${translate}
- Slides
- ${slideCount}
- Slides per view
- ${perView}
- Direction
- ${direction}
- Beginning / end
- ${beginEnd}
- Animating
- ${animating}
- Autoplay
- ${autoplayState}
- Zoom scale
- ${zoomScale}
${status}
Thumbs
The thumb swiper uses the Thumbs module, free mode and a grid layout, and stays in sync with the hero slider.
Effects
Re-creates the slider with each effect module and its typed effect options.
Current effect: ${effectName}
What this sample exercises
Swiperconstruction from a selector,SwiperOptionswith core and module options.- Module imports:
SwiperModule.Navigation,Pagination,Scrollbar,Keyboard,Mousewheel,A11y,Autoplay,Zoom,Manipulation,Thumbs,FreeMode,Gridand every effect module. - Typed events through
SwiperEventHandlers(Init,SlideChange,Progress,ZoomChange,AutoplayStart/Stop, …). - Instance API:
SlideNext/SlidePrev,SlideTo,ChangeDirection,Update,AppendSlide,RemoveSlide,Destroy,Enable/Disable,SlidesPerViewDynamic,GetSlideIndex. - Module APIs:
Navigation.NextEl,Pagination.Bullets,Autoplay.Running/Start/Stop,Zoom.In/Out/Scale,Keyboard.Enable/Disable,Thumbs.Update,Grid.Rows.