Overview
Controls options manage the display and behavior of prev/next buttons that allow users to navigate through slides.Options
Controls the display and functionalities of controls components (prev/next buttons).If
true, display the controls and add all functionalities.For better accessibility, when a prev/next button is focused, user will be able to control the slider using left/right arrow keys.
Controls
controls position.Text or markup in the prev/next buttons.
The container element/selector around the prev/next buttons.
controlsContainer must have at least 2 child elements.Customized previous button.This option will be ignored if
controlsContainer is a Node element or a CSS selector.Customized next button.This option will be ignored if
controlsContainer is a Node element or a CSS selector.Customization Examples
Custom Control Buttons
Use separate custom buttons for prev/next:Custom Controls Container
Use a container with both buttons:Icon-Based Controls
Disabling Controls on Mobile
Styling Controls
Default controls can be styled using these classes:Accessibility
Tiny Slider automatically adds appropriate ARIA attributes to controls:aria-controlspoints to the slider containertabindex="-1"on buttons (except when focused)disabledattribute when at the first/last slide (non-loop mode)