An Online-Access lightweight custom carousel that allows page size breakpoints among other custom options.
However, there are options to customize it, the first copyable example has all the custom options at their default settings (so if you don't input any of the options, it'll be like that as well, like the above example)
default: 1
This is the maximum number of slides to be displayed at once in the carousel. Input must be a whole number (integer).
default: null
If the number of maxSlides is more than 1, this is the screen's pixel width at which the number of slides will drop down at one, to work with responsive design. If null, it wont shrink the number of slides at once responsively. Either enter a single integer for the pixel width you want it at (example: breakPoint: 900, ...) or do an array of multiple integers for each descending screen size you want the slide at once count to drop at (example: breakPoint: [1000,700,400], ...)
default: 300
The speed of the animation of the slide movement, in ms (1/1000 of a second). Input must be a whole number (integer).
default: 'right'
Choose if you want the carousel to automatically slide when not hovered over. Options are 'right' to have it auto slide right, 'left' to have it auto slide left, or 'disable' to not have it automatically slide
default: 5000
If the autoSlide is enabled, this determines the time between each slide movement in ms (1/1000 of a second). Input must be a whole number (integer).
default: false
If you want pagination to display (the dots/dashes/icons) below the slider, set this parameter to be true (no quotes), and it will add them to the carousel such as the example (otherwise leave it false, or do not set the parameter).
Since, like the review widget, this targets a div with a specific Id, you can have multiple instances of a slider on a page (the review widget uses this slider) so when styling a slider, it's recommended to have the id, then whatever element inside targeted when doing css. (example: #OAslider .OAslide{ padding: 1rem; })
The other elements, not just the surrounding div are required such as the initial html provided. This means you can customize the next and previous icons if desired.