<div class="wrapper">
<div class="s-shadow-b"></div>
<a id="slide-next" href="#"></a>
<a id="slide-prev" href="#"></a>
<div id="slider">
<div class="slide cs-activeSlide"> <img src="images/slider/1.jpg" width="520" height="300" alt="slide1" /> </div>
<div class="slide"> <img src="images/slider/2.jpg" width="520" height="300" alt="slide2" /> </div>
<div class="slide"> <img src="images/slider/3.jpg" width="520" height="300" alt="slide3" /> </div>
<div class="slide"> <img src="images/slider/4.jpg" width="520" height="300" alt="slide4" /> </div>
</div>
<div class="pagination">
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
<span class="slider-pagination"></span>
</div>
<div class="slide-descriptions">
<div class="sl-descr">GBin1 tuotrial: <br/><a href="http://www.gbin1.com/technology/jquerynews/20111124nivoslider/">jQuery Quicksand</a></div>
<div class="sl-descr">GBin1 tuotrial: <br/><a href="http://www.gbin1.com/technology/jquerynews/20111124nivoslider/">jQuery Reel</a></div>
<div class="sl-descr">GBin1 tuotrial: <br/><a href="http://www.gbin1.com/technology/jquerynews/20111124nivoslider/">jQuery Sparklines</a></div>
<div class="sl-descr">GBin1 tuotrial: <br/><a href="http://www.gbin1.com/technology/jquerynews/20111124nivoslider/">jQuery HTML5 Drag&Drop</a></div>
</div>
<div class="caption"></div>
</div>
@charset "utf-8";
body {
background:#313131 repeat left top;
font-family:Arial, Helvetica, sans-serif;
margin:0;
font-size:13px;
line-height:1.5em;
color:#333;
min-width:1000px;
position:relative;
}
p { margin:10px 0; }
h1, h2, h3, h4, h5, h6 { margin:0 0 10px; }
h5 { text-transform:uppercase; }
img { border:none; }
h2 {
margin:15px 0;
}
ul li {
margin:5px 0;
}
.wrapper {
position:relative;
margin-left:auto;
margin-right:auto;
width:520px;
height:300px;
display:block;
padding-top:150px;
padding-bottom:120px;
background:url(../images/podium.png) no-repeat bottom;
z-index:2;
}
.wrapper2 {
position:relative;
margin-left:auto;
margin-right:auto;
margin-top:20px;
width:520px;
height:300px;
display:block;
z-index:2;
text-align:center;
padding-bottom:50px;
}
.wrapper2 a {
display:inline-block;
padding:0px 5px;
background:#fff;
border:1px solid #ccc;
border-radius:3px;
text-decoration:none;
margin:0px 5px;
}
.wrapper2 .active-transition {
background:#222;
color:#fff;
}
/*---------- Slider ----------- */
/*---------- Left and Right Triggers ----------- */
#slide-prev {
position:absolute;
width:21px;
height:33px;
bottom:39px;
left:26px;
z-index:4;
background:url(../images/sl-control.png) left top no-repeat;
}
#slide-next {
position:absolute;
width:21px;
height:33px;
bottom:39px;
right:26px;
z-index:4;
background:url(../images/sl-control.png) left bottom no-repeat;
}
/*---------- Shadow, just for styling ----------- */
.s-shadow-b{
background:url(../images/shadow.png) no-repeat top;
/*width:876px;*/
width:520px;
height:55px;
position:absolute;
left: 0px;
bottom:60px;
z-index:1;
}
/*---------- Main Slider Container----------- */
#slider {
width:520px;
height:300px;
margin-left:auto;
margin-right:auto;
position:relative;
z-index:2;
display:block;
}
/* Every slide must be hidden by default */
.slide { display:none; }
/*
And only the slide with "cs-activeSlide" class must be visible!
!Reserved Class name. Required class!
*/
.cs-activeSlide { display:block; }
/* Container with caption's text. Must be hidden */
.slide-descriptions {
display:none;
}
/* Container with caption, must be hidden by default */
.caption {
background: url("../images/d-bg.png") repeat scroll 0 0 transparent;
color: #FFFFFF;
display: none;
height: 280px;
padding: 20px;
position: absolute;
right: 10px;
top: 140px;
width: 100px;
z-index: 3;
}
.full-3D {
right: 40px;
top: 580px;
width: 840px;
height:20px;
}
/* Container with Pagination buttons */
.pagination {
bottom: 50px;
left: 180px;
margin-top: 50px;
position: absolute;
text-align: center;
}
.slider-pagination {
display:inline-block;
width:15px;
height:10px;
background:url(../images/navi.png) no-repeat left bottom;
margin:0 10px;
cursor:pointer;
position:relative;
z-index:200;
}
/* This is a required class for the "Active" pagination button. ! Reserved Class Name ! */
.cs-active-pagination {
background:url(../images/navi.png) no-repeat left top;
}
/* Multiple SLiders */
.slider-2 {
padding-top:0;
margin-top:20px;
}
#slider-1, #slider-2 {
width:520px;
height:300px;
margin-left:auto;
margin-right:auto;
position:relative;
z-index:2;
display:block;
}
.cs-activeSlide-2 {
display:block
}
.cs-active-pagination-2 {
background:url(../images/navi.png) no-repeat left top;
<script type="text/javascript" src="scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="scripts/jquery.id.chopslider-2.2.0.free.min.js"></script>
<script type="text/javascript" src="scripts/jquery.id.cstransitions-1.2.min.js"></script>
<script type="text/javascript" src="scripts/demo-2d.js"></script>
jQuery(function(){
$("#slider").chopSlider({
/* Slide Element */
slide : ".slide",
/* Controlers */
nextTrigger : "a#slide-next",
prevTrigger : "a#slide-prev",
hideTriggers : true,
sliderPagination : ".slider-pagination",
/* Captions */
useCaptions : true,
everyCaptionIn : ".sl-descr",
showCaptionIn : ".caption",
captionTransform : "scale(0) translate(-600px,0px) rotate(45deg)",
/* Autoplay */
autoplay : true,
autoplayDelay : 6000,
/* Default Parameters */
defaultParameters : {
type: "vertical",
xOffset: 20,
yOffset: 20,
hPieces : 10,
vPieces: 20,
rotate : 10 ,
rotateSymmetric: false,
scaleX:0.5,
scaleY:-0.5,
translateX:10,
translateY:10,
ease1:"ease",
ease2:"ease",
origin:"center center",
dur1: 1000,
dur2 :600,
dur3: 1000,
pieceDelay : 50,
xFadeDelay :0,
prevTransition : {
rotate:-10,
xOffset:10,
startFrom:10
}
},
/* For Mobile Devices */
mobile: {
disableCSS3:true,
dur1:1200,
dur2:1200,
dur3:1200,
hPieces:4,
vPieces:4,
pieceDelay:120,
rotate:0,
yOffset:0,
scaleX:1,
scaleY:1
},
/* For Old and IE Browsers */
noCSS3:{
dur1:1200,
dur2:1200,
dur3:1200,
hPieces:4,
vPieces:4,
pieceDelay:120,
xFadeDelay :200
},
onStart: function(){ /* Do Something*/ },
onEnd: function(){ /* Do Something*/ }
})
})