SSliderComponent
This component specify a range with some additional features than the native one like displaying the value automatically in tooltip or inline.
Preview
Simple slider
Loading code example. Please wait...
Tight slider
Loading code example. Please wait...
Contained slider
Loading code example. Please wait...
Vertical slider
Loading code example. Please wait...
Vertical tight slider
Loading code example. Please wait...
Vertical contained slider
Loading code example. Please wait...
Slider with progressbar
Loading code example. Please wait...
Slider with progressbar, loop and timer
Loading code example. Please wait...
Features
-
Exteremely customizable
-
Simply controls (next, previous) built-in
-
Default dots navigation built-in
-
Custom navigation capabilities built-in
-
Horizontal and vertical direction built-in
-
Swipe navigation built-in
-
Loop capability built-in
-
Timer capability built-in
-
Mousewheel navigation
-
Custom behavior (extensions) capabilities built-in
-
Slideable behavior available
Import
Install
Events
-
s-slider.goto
Dispatched just before the transitionn
-
s-slider.goto-end
Dispatched just after the transition
-
s-slider.next
Dispatched just before the transition to the next slide
-
s-slider.previous
Dispatched just before the transition to the previous slide
-
s-slider.play
Dispatched when the slider is set to play
-
s-slider.stop
Dispatched when the slider is set to stop
-
s-slider
Dispatched for every events of this component. Check the detail.eventType prop for event type
Interface
-
directionhorizontal
- horizontal
- vertical
StringSpecify the slider direction. Can be
horizontal
orvertical
-
behaviors{}Object
Specify the available behaviors for the slider
-
behaviorscroll
- none
- scroll
- transform
StringSpecify which behavior your want to use for your slider. Behavior are like "presets" with different animations, etc...
-
padfalseBoolean
Specify if you want to pad the slides if for example the first slide does not take the while width of the slider, a padding-(block|inline)-start will be applied to center this first slide. Same for the last one
-
nextIconClassString
Specify the class of the next icon
-
previousIconClassString
Specify the class of the previous icon
-
uiContainerString|Boolean
Specify if you want an "s-container:..." class applied on the .s-slider_ui element
-
controlsfalseBoolean
Specify if you want to display the controls or not. Controls are the previous and next icons
-
navfalseBoolean
Specify if you want to display the nav or not. Nav are the dots
-
swipefalseBoolean
Specify if you want your slider to support swipe navigation or not
-
mousewheelfalseBoolean
Specify if you want to enable the mousewheel event on the slider or not
-
clickOnSlidefalseBoolean
Specify if you want to enable the click on the slides to navigate or not
-
loopfalseBoolean
Specify if you want to enable the loop behavior or not
-
slide0Number
Specify the active slide id
-
slidesByPage1Number
Specify how many slides you want by page. Pages are what is used to construct the dot nav and will determine how many slides will be passed on "next" and "previous"
-
progressfalseBoolean
Specify if you want to display the progress bar or not
-
timerNumber
Specify a timer that will be applied on each slides and go to the next one after the timer is over. For custom timer by slide, specify the
timer="1200"
attribute on the slides you want -
autoplaytrueBoolean
Specify if you want the slider to auto play itself when some timer(s) has been set
-
intersectionClassesfalseBoolean
Specify if you want the classes that describe each slide intersection classes like "in-10", "in-20", etc...
-
transitionDuration500Number
Specify the transition duration of the slider in ms
-
transitionEasingFunction
Specify the transition easing of the slider
-
transitionHandlerFunction
Specify a function that will take care of transitioning the slider from the current item to the next/previous