Demo - Copyright (c) 2016 Nils Kreutzer
The master
branch of this repository is always the latest development version of UnicornSlider. Please view the Releases section for a list of official UnicornSlider builds.
** Version 1.0 **
UnicornSlider is open source under the MIT License
debug
mode displays infos to the console, values true or false
Show arrows across borders, values true or false
Shrink wrapper to minmal size, values true or false
Select the animation direction, values “horizontal” or “vertical”
Prefix string attached to the class of every element generated by the plugin
Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
The prevText
will be inserted in prev tag
The nextText
will be inserted in next tag
Additional class for style in parent element. There are 5 predefined styles (“pinkelephant”, “earlgrey”, “lattemacchiato”, “gargleblaster” and a fallback), allthough you can of course define your own.
Select if active element is centered, values “off”, “mobile”, “desktop” or “on”
Height of button element in px
Width of button element in px
The maximal number of items visible (the displayed number of items can be lower corresponding to screensize)
Animation speed in Milliseconds
The item active on init
Callback function that fires on init done
Callback function that fires on button “prev” or “next” before button click is processed
Callback function that fires on animation started
Callback function that fires on animation ended
Callback function that fires on slider destroyed
To destroy an active slider at runtime, use $(“.unicornslider”).data(“unicornslider”).unicornslider(“destroy”)