WebSharper.Swiper

Swiper 14.4.0 bindings for F# — with WebSharper

Source

Hero slider

Navigation, pagination, scrollbar, keyboard, mousewheel, a11y, autoplay, zoom, thumbs and slide manipulation.

01

Modules

Feature modules are imported from swiper/modules and listed in Modules.

02

Typed options

Every core and module option is a typed property with a matching *Options class.

03

Strongly typed events

The On option exposes all events with their real handler signatures.

04

Module APIs

swiper.Navigation, swiper.Pagination, swiper.Zoom and friends are typed too.

05

Manipulation

Add and remove slides at runtime with the manipulation module, then Update().

06

Theming

The sample is light by default and the header host toggles a dark palette.

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.

01
02
03
04
05
06

Effects

Re-creates the slider with each effect module and its typed effect options.

Slide

The default effect.

Fade

Cross-fading slides.

Cube

A rotating 3D cube.

Coverflow

Perspective covers.

Cards

A stack of cards.

Current effect: ${effectName}

What this sample exercises