Skip to content

Options ​

Every option works the same way in all three APIs. In HTML, write it in kebab-case: slidesPerView → slides-per-view on <insigne-slider>, or data-slides-per-view on a [data-insigne] element. Objects (like breakpoints) are written as JSON.

html
<insigne-slider effect="fade" slides-per-view="1" autoplay="5000" breakpoints='{"768":{"effect":"slide"}}'>
<div data-insigne data-effect="fade" data-autoplay="5000">
js
new InsigneSlider(el, { effect: 'fade', autoplay: 5000 })

Swiper-style names are accepted as aliases: gap, centeredSlides, initialSlide, navigation, disableOnInteraction, autoHeight, perView, delay.

80 options

Layout

effecteffect
Type enumDefault "slide"

Transition between slides. CSS effects work everywhere; WebGL effects (heat-haze, ripple, liquid…) load on demand and fall back to a matching CSS effect when WebGL or CORS is unavailable.

slidefadecubecoverflowflipcardscreativestackzoomblurrotateparallaxwarpproductsketchuncoverglitchwipecurtainirisdiagonalblindssplitshutterboxesdiamondclockheat-hazerippleliquidrgb-glitchpixel-dissolvezoom-blurswirlpage-curlinkgod-rayswarp-speedwaterluma-morphrandom-gl
directiondirection
Type enumDefault "horizontal"

Axis the slides travel along.

horizontalvertical
slidesPerViewslides-per-view
Type number|enumDefault 1Range 1 … 12

Slides visible at once (fractions allowed, e.g. 1.2 to peek the next one). "auto" uses each slide's own width.

auto
minSlideWidthmin-slide-width
Type numberDefault 0Range 0 … 2000

Responsive columns without breakpoints: as many slides as fit at this minimum width (px). 0 = off.

spaceBetweenspace-between
Type numberDefault 0Range 0 … 200

Gap between slides in px.

centeredcentered
Type booleanDefault false

Center the active slide (useful with slidesPerView > 1).

heightheight
Type number|stringDefault "auto"

"auto" (aspect / image ratio, zero config), "image" (exact ratio of each background — nothing is cropped), "content" (tallest slide), "fill" (the element's own CSS height), a number in px or any CSS length (e.g. "80vh").

aspectaspect
Type number|stringDefault "auto"

Aspect ratio used by height "auto": "auto" picks a ratio per container width (wide on desktop, taller on phones) from the first background image, or e.g. "16/9", 2.4.

minHeightmin-height
Type number|stringDefault 240

Lower bound for computed heights (px or CSS length).

maxHeightmax-height
Type number|stringDefault "92vh"

Upper bound for computed heights (px or CSS length, vh is resolved against the window).

breakpointsbreakpoints
Type objectDefault {}

Overrides by container width: { 640: { slidesPerView: 2 }, 1024: { slidesPerView: 3 } }. Keys are min-widths of the slider itself, not the window.

startIndexstart-index
Type numberDefault 0Range 0 … ∞

Slide shown first (0-based). The URL hash #slide-3 also works when hash is on.

rtlrtl
Type enum|booleanDefault "auto"

Right-to-left. "auto" follows the dir attribute of the page.

auto

Motion & effects

speedspeed
Type numberDefault 700Range 0 … 5000

Transition duration in ms.

easeease
Type enumDefault "auto"

Easing of programmatic moves. "auto" picks one per effect. Dragging always follows the finger and releases with its momentum.

autolinearsine.inOutpower2.inOutpower3.outpower4.outexpo.outexpo.inOutcirc.outback.out
looploop
Type enum|booleanDefault "loop"

"loop" (endless, no cloned slides), "rewind" (jump back to the start) or "off". true/false are accepted.

looprewindoff
parallaxparallax
Type booleanDefault true

Animate elements with data-parallax / data-parallax-opacity / data-parallax-scale as slides move.

scrollDrivescroll-drive
Type booleanDefault false

Page scroll drives the slider (scroll-telling). Loaded on demand.

slideShadowsslide-shadows
Type booleanDefault true

Depth shading on 3D effects (cube, flip, coverflow, cards, stack).

coverflowRotatecoverflow-rotate
Type numberDefault 40Range 0 … 80

Coverflow: rotation of side slides (deg).

coverflowDepthcoverflow-depth
Type numberDefault 160Range 0 … 600

Coverflow: depth of side slides (px).

coverflowStretchcoverflow-stretch
Type numberDefault 0Range -100 … 100

Coverflow: extra spacing of side slides (px).

creativecreative
Type objectDefault {"prev":{"translate":["-22%",0,-320],"…

Effect "creative": transforms of the previous / next slide ({ translate: [x, y, z], rotate: [x, y, z], scale, opacity }).

shaderIntensityshader-intensity
Type numberDefault 1Range 0 … 2

WebGL effects: strength of the distortion.

shaderSpeedshader-speed
Type numberDefault 1Range 0 … 3

WebGL effects: speed of animated noise.

shaderAngleshader-angle
Type numberDefault 0Range -180 … 180

WebGL effects: direction (deg) for directional transitions.

shaderOriginshader-origin
Type enumDefault "pointer"

WebGL effects: where radial transitions start (the click / pointer, the center or shaderOriginX/Y).

pointercentercustom
shaderOriginXshader-origin-x
Type numberDefault 0.5Range 0 … 1

Custom origin X (0–1).

shaderOriginYshader-origin-y
Type numberDefault 0.5Range 0 … 1

Custom origin Y (0–1).

gpugpu
Type enumDefault "auto"

WebGL policy. "auto" skips WebGL on low-power devices and data saver.

autoprefer-webglcss-only

Autoplay

autoplayautoplay
Type boolean|numberDefault false

Advance automatically. A number is the delay in ms (same as autoplay: true + autoplayDelay).

autoplayDelayautoplay-delay
Type numberDefault 5000Range 500 … 60000

Time each slide stays (ms).

pauseOnHoverpause-on-hover
Type booleanDefault true

Pause while the pointer is over the slider (and while it has keyboard focus).

stopOnInteractionstop-on-interaction
Type booleanDefault false

Stop autoplay for good after the user swipes, clicks an arrow or a dot.

reversereverse
Type booleanDefault false

Autoplay backwards.

stopOnLaststop-on-last
Type booleanDefault false

Stop on the last slide (when loop is not "loop").

autoplayProgressautoplay-progress
Type booleanDefault true

Progress ring that doubles as a pause / play button (WCAG 2.2.2).

Interaction

dragdrag
Type booleanDefault true

Swipe with touch, pen or mouse. Every effect follows the finger, including 3D and masks.

freeModefree-mode
Type booleanDefault false

Momentum scrolling without snapping.

freeModeStickyfree-mode-sticky
Type booleanDefault false

Free mode, but settle on the nearest slide.

resistanceresistance
Type numberDefault 0.85Range 0 … 1

Rubber-band strength at the edges (loop off).

keyboardkeyboard
Type booleanDefault true

Arrow keys, PageUp/PageDown, Home/End while the slider has focus.

mousewheelmousewheel
Type booleanDefault false

Navigate with the mouse wheel / trackpad (the page scrolls on at the ends).

hashhash
Type booleanDefault false

Sync the active slide with the URL hash (#slider-id-3), for deep links.

Navigation

arrowsarrows
Type enum|booleanDefault "hover"

Previous / next buttons. "hover" shows them on pointer devices on hover and always on touch.

hovervisiblehidden
arrowsPlacementarrows-placement
Type enumDefault "inside"

Arrows over the slides or outside them.

insideoutside
arrowsPositionarrows-position
Type enumDefault "sides"

Where the arrows sit.

sidesbottom-leftbottom-centerbottom-righttop-right
arrowSizearrow-size
Type numberDefault 44Range 24 … 96

Arrow button size (px). 44 meets touch target guidelines.

arrowOffsetarrow-offset
Type numberDefault 16Range 0 … 96

Distance of the arrows from the edge (px).

paginationpagination
Type enum|booleanDefault "dots"

Dots (dynamic beyond 7 slides), "03 / 12" fraction, a progress bar or none.

dotsfractionprogressnone
paginationPlacementpagination-placement
Type enumDefault "inside"

Pagination over the slides or below them.

insideoutside
thumbsthumbs
Type stringDefault ""

CSS selector of another slider that acts as this one's thumbnails (synced both ways).

Images

fitfit
Type enumDefault "smart"

How background images fill the slide. "smart" covers like "cover" but never cuts the focus point or the safe area: if they would be cut it zooms out and fills the gap with a blurred copy.

smartcovercontain
focusfocus
Type stringDefault "50% 50%"

Default focal point of background images ("x% y%"). Per image: data-focus.

safesafe
Type stringDefault ""

Default safe area that must always stay visible: "left top width height" in % of the image, e.g. "30 10 40 80". Per image: data-safe.

backdropbackdrop
Type stringDefault "blur"

What fills the space around a zoomed-out image: "blur" (blurred copy), "none", or any CSS color.

kenBurnsken-burns
Type enum|booleanDefault false

Slow zoom / pan of the background on the active slide, centered on the focus point. true = "zoom-out". Per slide: data-ken-burns.

zoom-inzoom-outpan-leftpan-rightpan-uppan-downdiagonalalternate
kenBurnsDurationken-burns-duration
Type numberDefault 9000Range 1000 … 60000

Ken Burns duration (ms).

kenBurnsScaleken-burns-scale
Type numberDefault 1.12Range 1 … 1.6

Ken Burns zoom amount.

lazylazy
Type booleanDefault true

Load images of slides out of view only when they are about to be shown.

preloadpreload
Type numberDefault 1Range 0 … 5

Neighbor slides to preload on each side.

Layers

layerslayers
Type booleanDefault true

Animate elements with data-in (entrance), data-out (exit), data-loop and data-hover when their slide becomes active. Loaded on demand.

layerInlayer-in
Type stringDefault ""

Default entrance recipe for elements with an empty data-in, and for headings / paragraphs / buttons when "auto".

layerOutlayer-out
Type stringDefault "reverse"

Default exit: "reverse" (the entrance backwards, faster), an exit recipe (fade, up, down, left, blur) or "none".

layerSpeedlayer-speed
Type numberDefault 1Range 0.2 … 4

Multiplier for all layer timings (>1 = slower).

imageInimage-in
Type stringDefault "none"

Image recipe for the background of the entering slide (develop, focus, spotlight, rise, tint, flicker, depth-zoom, breathe).

recipesrecipes
Type objectDefault {}

Your own recipes, merged over the built-in ones: { "my-rise": { split: "words", stagger: 40, in: [{ o: 0, y: 30 }, { o: 1, y: 0, d: 700, e: "expo.out" }] } }.

Atmosphere

overlayoverlay
Type enumDefault "none"

Animated light / texture over the slides (beams, rays, light-leak, grain, letterbox, vignette, scanlines, fog).

nonebeamsrayslight-leakgrainletterboxvignettescanlinesfog
particlesparticles
Type enumDefault "none"

Canvas particle field (stars, warp, dust, snow, embers, bokeh, fireflies, bubbles). Loaded on demand, paused offscreen.

nonestarswarpdustsnowembersbokehfirefliesbubbles
particleDensityparticle-density
Type numberDefault 1Range 0.1 … 3

Particle count multiplier.

scrollDepthscroll-depth
Type numberDefault 0Range 0 … 1

Scroll parallax: while the page scrolls, backgrounds and text move at different speeds (0 = off, 1 = strong).

Accessibility

labellabel
Type stringDefault ""

Accessible name of the slider (aria-label). Defaults to the aria-label of the element.

localelocale
Type stringDefault "auto"

Language of the built-in labels: "auto" (page lang), "en", "tr".

i18ni18n
Type objectDefault {}

Override any label: { prev, next, goTo, slide, pause, play, carousel, slideRole }.

reducedMotionreduced-motion
Type enumDefault "auto"

"auto" follows prefers-reduced-motion: 3D / WebGL become fade, layers appear without motion, autoplay is off.

autoalwaysnever
pauseOffscreenpause-offscreen
Type booleanDefault true

Pause autoplay, WebGL, particles and layer loops while the slider is out of view or the tab is hidden.

Attribution

creditcredit
Type enumDefault "below"

Attribution required by the license: "below" the slider (default), "inside" as a small badge, or "page" when your page already shows a visible link to sadiksefa.dev or sadiksefa.com.tr (e.g. in the footer).

belowinsidepage
creditAligncredit-align
Type enumDefault "end"

Alignment of the "below" credit.

endstartcenter
creditThemecredit-theme
Type enumDefault "auto"

Credit colors. "auto" reads the page background.

autolightdark
licenselicense
Type stringDefault ""

Domain license key that removes the attribution requirement for the domains it was issued for.

Insigne Slider v1.0.0 · Free for any use with visible attribution · Atıf ile her kullanım için ücretsiz