AnythingSlider playground

Add, remove, adjust any or all options so you can see how it works.

by Mottie

HTML

<link rel="stylesheet" href="http://css-tricks.github.com/AnythingSlider/css/anythingslider.css">
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.easing.1.2.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/swfobject.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.fx.js"></script>
<script src="http://css-tricks.github.com/AnythingSlider/js/jquery.anythingslider.video.js"></script>
<ul id="slider">
    <li>
        <img src="http://placekitten.com/300/200" alt="" />
    </li>
    <li>
        <img src="http://placehold.it/300x200" alt="" />
    </li>
    <li>
        <img src="http://placebear.com/300/200" alt="" />
    </li>
    <li>
        <img src="http://lorempixel.com/300/200" alt="" />
    </li>
    <li>
        <img src="http://placedog.com/300/200" alt="" />
    </li>
</ul>

CSS

/*** Set Slider dimensions here! Version 1.7+ ***/

/* added #slider li to make panels the same size in case "resizeContents" is false */
 ul#slider, ul#slider li {
    width: 300px;
    height: 200px;
    list-style: none;
}

JavaScript

$('#slider').anythingSlider({
    theme: "default", // Theme name
    mode: "horiz", // Set mode to "horizontal", "vertical" or "fade" (only first letter needed); replaces vertical option
    expand: false, // If true, the entire slider will expand to fit the parent element
    resizeContents: true, // If true, solitary images/objects in the panel will expand to fit the viewport
    showMultiple: false, // Set this value to a number and it will show that many slides at once
    easing: "swing", // Anything other than "linear" or "swing" requires the easing plugin or jQuery UI

    buildArrows: true, // If true, builds the forwards and backwards buttons
    buildNavigation: true, // If true, builds a list of anchor links to link to each panel
    buildStartStop: false, // If true, builds the start/stop button

    appendForwardTo: null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
    appendBackTo: null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null
    appendControlsTo: null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null
    appendNavigationTo: null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null
    appendStartStopTo: null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null

    toggleArrows: true, // If true, side navigation arrows will slide out on hovering & hide @ other times
    toggleControls: false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times

    startText: "Start", // Start button text
    stopText: "Stop", // Stop button text
    forwardText: "&laquo;", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image)
    backText: "&raquo;", // Link text used to move the slider back (hidden by CSS, replace with...