AnythingSlider playground
Add, remove, adjust any or all options so you can see how it works.
HTML
<script src="http://proloser.github.com/AnythingSlider/js/jquery.anythingslider.js"></script>
<link rel="stylesheet" href="http://proloser.github.com/AnythingSlider/css/anythingslider.css">
<script src="http://proloser.github.com/AnythingSlider/js/jquery.easing.1.2.js"></script>
<script src="http://proloser.github.com/AnythingSlider/js/swfobject.js"></script>
<div id="wrapper">
<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://ipsumimage.appspot.com/300x200.png" alt="" /></li>
<li><img src="http://dummyimage.com/300x200/000/fff.jpg" alt="" /></li>
</ul>
</div>
CSS
#wrapper { width: 100%; height: 300px; } /* used when "expand" is true */
/* Conditional comments don't work in this playground, If testing in IE7 or older browsers, uncomment out the CSS below:
Also note, this may not work properly on themes other than the default as the chosen theme stylesheet is loaded after this CSS and will over-ride it */
/*
div.anythingSlider .arrow {
top: 35% !important;
}
div.anythingSlider-metallic .arrow {
top: 40% !important;
}
div.anythingSlider-construction .arrow {
top: 14% !important;
}
div.anythingSlider-minimalist-round .arrow , div.anythingSlider-minimalist-square .arrow {
top: 45% !important;
}
div.anythingSlider-cs-portfolio .arrow {
bottom: -24px !important;
}
div.anythingSlider .arrow a,
div.anythingSlider-metallic .arrow a,
div.anythingSlider-minimalist-square .arrow a,
div.anythingSlider-construction .arrow a,
div.anythingSlider-minimalist-round .arrow a {
margin: 0 !important;
}
*/
JavaScript
$('#slider').anythingSlider({
// *********** Appearance ***********
// Override the default CSS width
// width: 300,
// Override the default CSS height
height: 200,
// If true, the entire slider will expand to fit the parent element
expand: true,
// If true, solitary images/objects in the panel will expand to fit the viewport
resizeContents: false,
// Set this value to a number and it will show that many slides at once
showMultiple: false,
// Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent)
tooltipClass: 'tooltip',
// Theme name; choose from: minimalist-round, minimalist-square, metallic, construction, cs-portfolio
theme: 'default',
// Theme directory & filename {themeName} is replaced by the theme value above
themeDirectory: 'http://proloser.github.com/AnythingSlider/css/theme-{themeName}.css',
// *********** Navigation ***********
// This sets the initial panel
startPanel: 1,
// Should links change the hashtag in the URL?
hashTags: true,
// if false, the slider will not wrap
infiniteSlides: true,
// if false, keyboard arrow keys will not work for the current panel.
enableKeyboard: true,
// If true, builds the forwards and backwards buttons
buildArrows: true,
// If true, side navigation arrows will slide out on hovering & hide @ other times
toggleArrows: false,
// If true, builds a list of anchor links to link to each panel
buildNavigation: true,
// if false, navigation links will still be visible, but not clickable.
enableNavigation: true,
// if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times
toggleControls: false,
// A HTML element (jQuery Object, selector or HTMLNode) to which the controls will be appended if not null
appendControlsTo: null,
// Details at the top of the file on this use...