Skip to content

CSS variables & parts ​

The controls live in a closed shadow root. Style them with custom properties and ::part(); style your slides with ordinary CSS. A full walkthrough is in theming.

Custom properties ​

PropertyDefaultDescription
--ins-radius0Viewport corner radius.
--ins-arrow-bgrgba(255,255,255,.88)Arrow background.
--ins-arrow-fg#14161cArrow icon color.
--ins-pag-fgcurrentColorPagination color when outside the slides.
--ins-dot-activecurrentColor (outside), #fff (inside)Active dot.
--ins-accentcurrentColor (outside), #fff (inside)Progress bar and autoplay ring.
--ins-focus#4f7cffFocus ring.
--ins-dur360msControl transitions.
--ins-dur-fast160msPress / hover feedback.
--ins-ease, --ins-ease-outcurvesControl easing.

Set via options instead: arrowSize, arrowOffset (they become --ins-arrow, --ins-arrow-off).

Parts ​

PartElement
viewportSlide area
arrow · prev · nextArrow buttons
barPagination and autoplay row
paginationPagination container
dot · dot-activeDots
autoplayAutoplay button
css
insigne-slider::part(arrow) { width: 52px; height: 52px; border-radius: 12px; }
insigne-slider::part(dot-active) { background: transparent; }

Selectors for your slides ​

.ins-slide, .is-active, .is-prev, .is-next, .has-bg, .is-thumb-active, and [data-ins-ready] on the slider. Layer split pieces: .ins-w (word), .ins-c (letter).

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