SwiperFlow

Attributes Reference

Complete reference for all SwiperFlow configuration attributes

SwiperFlow is configured entirely through HTML data attributes. All configuration attributes are added to the list element (data-swf-element="list").

Quick Reference

CategoryAttributes
Basicspeed, gap, visible, loop, initial, direction, centered, grab, swipe, touch
NavigationNavigation arrows and pagination dots
Autoplayautoplay, autoplay-delay
Effectseffect (fade, cards, creative, creative-flat)
Breakpointsbp-desktop, bp-tablet, bp-mobile
Advancedinit, disabled, double, filter, controller sync

Attribute Format

All attributes use the data-swf- prefix:

<div
  data-swf-element="list"
  data-swf-loop="true"
  data-swf-speed="600"
  data-swf-gap="20"
>

Boolean Attributes

For boolean options, simply add the attribute to enable:

<!-- Enable loop mode -->
<div data-swf-element="list" data-swf-loop="true">

<!-- Or just the presence of the attribute -->
<div data-swf-element="list" data-swf-loop>

To explicitly disable (when the default is true):

<div data-swf-element="list" data-swf-grab="false">

All Attributes

Basic Configuration

AttributeTypeDefaultDescription
data-swf-speednumber400Transition speed in milliseconds
data-swf-gapnumber0Space between slides in pixels
data-swf-visiblenumber/string1Slides per view ("auto" supported)
data-swf-loopbooleanfalseEnable continuous loop
data-swf-initialnumber0Index of initial slide (0-based)
data-swf-directionstring"horizontal""horizontal" or "vertical"
data-swf-centeredbooleanfalseCenter the active slide
data-swf-grabbooleantrueShow grab cursor
data-swf-swipebooleantrueEnable touch/swipe
data-swf-touchbooleantrueEnable mouse drag simulation
data-swf-active-classstring"swiper-slide-active"Class for active slide
data-swf-additionalnumber0Additional slides to clone in loop

Autoplay

AttributeTypeDefaultDescription
data-swf-autoplaybooleanfalseEnable autoplay
data-swf-autoplay-delaynumber3000Delay between transitions (ms)

Effects

AttributeTypeDefaultDescription
data-swf-effectstring"none"Visual effect: "fade", "cards", "creative", "creative-flat"

Breakpoints

AttributeTypeDefaultDescription
data-swf-bp-desktopnumberSlides per view at ≥992px
data-swf-bp-tabletnumberSlides per view at 569-991px
data-swf-bp-mobilenumberSlides per view at 320-568px

Advanced

AttributeTypeDescription
data-swf-initstringConditional init: "desktop", "tablet", "mobile"
data-swf-disabledPrevent initialization
data-swf-doubleDuplicate all slides
data-swf-filterWatch for DOM changes
data-swf-ctrl-rolestringController role: "controller"
data-swf-ctrl-pairstringLink sliders with matching values
data-swf-ctrl-idstringUnique controller identifier
data-swf-thumb-idstringLink thumbnail sliders
data-swf-keyboardbooleanEnable keyboard navigation
data-swf-easestringEasing function: "ease", "ease-in", "ease-out", "ease-in-out", "linear", or cubic-bezier(...)

On this page