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>
<!-- Add additional stylesheets here -->
<link rel="stylesheet" href="http://css-tricks.github.com/AnythingSlider/css/theme-metallic.css">
<ul id="slider">
<li><img src="http://placekitten.com/300/200" alt="" /></li>
<li class="extra-wide">
<img src="http://placehold.it/600x200" alt="" />
</li>
<!-- empty slide needed here so image from the
above slide can span across -->
<li></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 */
/* force wide LI to be the same width as the others */
ul#slider, ul#slider li.extra-wide {
width: 300px;
height: 200px;
list-style: none;
}
ul#slider .panel {
overflow: visible; /* override panel overflow hidden */
}
JavaScript
$('#slider').anythingSlider({
// If true, solitary images/objects in the panel will expand to
// fit the viewport
resizeContents: false
});