
Coda-Slider 2.0 Settings - Full listing
Check out
the demos to see many of these settings in use.
autoHeightValues: true, false, 1, 0
Default: true
Description: Dynamically adjusts slider height according to the height of the content in each panel.
Notes: If set to false or 0, the height of the slider will be set to the height of the tallest panel.
autoHeightEaseDurationValues: Any amount of milliseconds.
Default: 1000
Description: Duration of autoHeight easing effect.
Notes: Ideally, this should use the same value as slideEaseDuration (see below). Depends on autoHeight being set to true or 1.
autoHeightEaseFunctionValues: See
Robert Penner's Equations Visualizer for the full list.
Default: "easeInOutExpo"
Description: Easing method used for autoHeight effect.
Notes: Value must be enclosed in quotes. Depends on autoHeight being set to true or 1.
autoSlideValues: true, false, 1, 0
Default: false
Description: Specifies whether slider should move between panels automatically.
autoSlideIntervalValues: Any amount of milliseconds.
Default: 7000
Description: Time to wait before auto sliding.
Notes: Depends on autoSlide being set to true or 1.
autoSlideStopWhenClickedValues: true, false, 1, 0
Default: true
Description: Determines whether the autoSlide function should stop when user interacts with the slider.
Notes: Depends on autoSlide being set to true or 1.
crossLinkingValues: true, false, 1, 0
Default: true
Description: Allows permalinking to each slider panel via a URL hash (e.g.
http://www.myslider.com/#4).
Notes: Works best if autoSlide (see above) is disabled. Only numbers can be used for the hash values; they are automatically generated by the script. If this cross-linking is enabled and a valid URL hash is presnt, and setting specified for firstPanelToLoad (see below) will be overruled.
dynamicArrowsValues: true, false, 1, 0
Default: true
Description: Places left and right buttons alongside the slider.
Notes: Set this to false or 0 and you can still hardcode the left and eight buttons in the HTML, giving you more flexibility with positioning. See
Example 4 in the demos.
dynamicArrowLeftTextValues: Anything you want.
Default: "« left"
Description: The anchor text used for the dynamic "slide left" button.
Notes: Depends on dynamicArrows being set to true or 1.
dynamicArrowRightTextValues: Anything you want.
Default: "right »"
Description: The anchor text used for the dynamic "slide right" button.
Notes: Depends on dynamicArrows being set to true or 1.
dynamicTabsValues: true, false, 1, 0
Default: true
Description: Adds tabbed navigation to the slider.
Notes: panelTitleSelector (see below) lets you specify what anchor text is used in each tab.
dynamicTabsAlignValues: "center", "left", "right"
Default: "center"
Description: Specifies the horizontal alignment of the tabbed navigation, relative to the slider.
Notes: Depends on dynamicTabs being set to true or 1. Value must be enclosed in quotes.
dynamicTabsPositionValues: "bottom", "top"
Default: "top"
Description: Specifies whether the tabbed navigation should appear above or below the slider.
Notes: Depends on dynamicTabs being set to true or 1. Value must be enclosed in quotes.
externalTriggerSelectorValues: Pretty much any
jQuery selector, but best to reference an anchor.
Default: "a.xtrig"
Description: Specifies the selector for elements on the page, apart from the usual navigation elements, which should trigger a slide.
Notes: Value must be enclosed in quotes. The external trigger must have a rel attribute to specify the id of the slider which it should affect. If cross linking is required, also be sure to include a href attribute, specifying the appropriate URL hash. See
Example 3 in the demos.
firstPanelToLoadValues: Any integer corresponding to a panel (e.g. use 2 if you want the second panel to load first).
Default: 1
Description: Specifies the panel that should be loaded first, in the absence of cross-linking.
Notes: See
Example 5 in the demos.
panelTitleSelectorValues: Pretty much any
jQuery selector.
Default: "h2.title"
Description: Specifies which element within each panel the tabbed navigation anchor text should be copied from.
Notes: Depends on dynamicTabs being set to true or 1. Value must be enclosed in quotes.
slideEaseDurationValues: Any amount of milliseconds.
Default: 1000
Description: Duration of slide easing effect.
Notes: Ideally, this should use the same value as autoHeightEaseDuration (see above). Depends on autoHeight being set to true or 1.
slideEaseFunctionValues: See
Robert Penner's Equations Visualizer for the full list.
Default: "easeInOutExpo"
Description: Easing method used for slide effect.
Notes: Value must be enclosed in quotes.