Source: evertkwok.nl
More examples
You are now viewing this carousel:
HTML
<div id="wrapper"> <div id="prev"> <a href="#" class="images">⇑ </a> <a href="#" class="thumbs">⇑ </a> </div> <div id="images"> <img src="img/large/ek-aanhanger.gif" alt="ek-aanhanger" width="350" height="350" /> <img src="img/large/ek-alien.gif" alt="ek-alien" width="350" height="350" /> <img src="img/large/ek-artsen.gif" alt="ek-artsen" width="350" height="350" /> <img src="img/large/ek-brandweer.gif" alt="ek-brandweer" width="350" height="350" /> <img src="img/large/ek-dommel.gif" alt="ek-dommel" width="350" height="350" /> <img src="img/large/ek-freudiaans.gif" alt="ek-freudiaans" width="350" height="350" /> <img src="img/large/ek-kamikazepiloot.gif" alt="ek-kamikazepiloot" width="350" height="350" /> <img src="img/large/ek-langselkaarheen.gif" alt="ek-langselkaarheen" width="350" height="350" /> <img src="img/large/ek-perswee.gif" alt="ek-perswee" width="350" height="350" /> <img src="img/large/ek-politiekannietzeggen.gif" alt="ek-politiekannietzeggen" width="350" height="350" /> <img src="img/large/ek-rollenpatroon.gif" alt="ek-rollenpatroon" width="350" height="350" /> <img src="img/large/ek-suikerspin.gif" alt="ek-suikerspin" width="350" height="350" /> <img src="img/large/ek-uitvallen.gif" alt="ek-uitvallen" width="350" height="350" /> <img src="img/large/ek-vaassen.gif" alt="ek-vaassen" width="350" height="350" /> <img src="img/large/ek-vreedzaamverzet.gif" alt="ek-vreedzaamverzet" width="350" height="350" /> <img src="img/large/ek-zelfspotter.gif" alt="ek-zelfspotter" width="350" height="350" /> </div> <div id="thumbs"> <img src="img/small/ek-aanhanger.gif" alt="ek-aanhanger" width="70" height="70" /> <img src="img/small/ek-alien.gif" alt="ek-alien" width="70" height="70" /> <img src="img/small/ek-artsen.gif" alt="ek-artsen" width="70" height="70" /> <img src="img/small/ek-brandweer.gif" alt="ek-brandweer" width="70" height="70" /> <img src="img/small/ek-dommel.gif" alt="ek-dommel" width="70" height="70" /> <img src="img/small/ek-freudiaans.gif" alt="ek-freudiaans" width="70" height="70" /> <img src="img/small/ek-kamikazepiloot.gif" alt="ek-kamikazepiloot" width="70" height="70" /> <img src="img/small/ek-langselkaarheen.gif" alt="ek-langselkaarheen" width="70" height="70" /> <img src="img/small/ek-perswee.gif" alt="ek-perswee" width="70" height="70" /> <img src="img/small/ek-politiekannietzeggen.gif" alt="ek-politiekannietzeggen" width="70" height="70" /> <img src="img/small/ek-rollenpatroon.gif" alt="ek-rollenpatroon" width="70" height="70" /> <img src="img/small/ek-suikerspin.gif" alt="ek-suikerspin" width="70" height="70" /> <img src="img/small/ek-uitvallen.gif" alt="ek-uitvallen" width="70" height="70" /> <img src="img/small/ek-vaassen.gif" alt="ek-vaassen" width="70" height="70" /> <img src="img/small/ek-vreedzaamverzet.gif" alt="ek-vreedzaamverzet" width="70" height="70" /> <img src="img/small/ek-zelfspotter.gif" alt="ek-zelfspotter" width="70" height="70" /> </div> <div id="next"> <a href="#" class="images">⇓ </a> <a href="#" class="thumbs">⇓ </a> </div> </div> <p id="source">Source: <a href="http://www.evertkwok.nl" target="_blank">evertkwok.nl</a></p>
JavaScript
$(function() {
$div = null;
$('#thumbs').children().each(function(i) {
if ( i % 9 == 0) {
$div = $( '<div />' );
$div.appendTo( '#thumbs' );
}
$(this).appendTo( $div );
$(this).addClass( 'itm'+i );
$(this).click(function() {
$('#images').trigger( 'slideTo', [i, 0, true] );
});
});
$('#thumbs img.itm0').addClass( 'selected' );
$('#images').carouFredSel({
direction: 'up',
circular: false,
infinite: false,
width: 350,
height: 350,
items: 1,
auto: false,
prev: '#prev .images',
next: '#next .images',
scroll: {
fx: 'directscroll',
onBefore: function() {
var pos = $(this).triggerHandler( 'currentPosition' );
$('#thumbs img').removeClass( 'selected' );
$('#thumbs img.itm'+pos).addClass( 'selected' );
var page = Math.floor( pos / 9 );
$('#thumbs').trigger( 'slideToPage', page );
}
}
});
$('#thumbs').carouFredSel({
direction: 'up',
circular: false,
infinite: false,
width: 350,
height: 350,
items: 1,
align: false,
auto: false,
prev: '#prev .thumbs',
next: '#next .thumbs'
});
});
CSS
html, body {
height: 100%;
padding: 0;
margin: 0;
}
body {
min-height: 600px;
min-width: 990px;
}
body * {
font-family: Arial, Geneva, SunSans-Regular, sans-serif;
font-size: 14px;
color: #333;
line-height: 22px;
}
#wrapper {
border: 1px solid #ddd;
background-color: #fff;
width: 750px;
height: 350px;
padding: 50px 25px 50px 50px;
margin: -225px 0 0 -412px;
position: absolute;
top: 50%;
left: 50%;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#wrapper img {
display: block;
float: left;
}
#images, #thumbs {
height: 350px;
float: left;
overflow: hidden;
}
#images {
width: 350px;
}
#thumbs {
width: 375px;
margin-left: 25px;
}
#thumbs img {
border: 1px solid #ccc;
padding: 14px;
margin: 0 25px 25px 0;
cursor: pointer;
}
#thumbs img.selected, #thumbs img:hover {
border-color: #333;
}
#thumbs div {
width: 375px;
height: 350px;
float: left;
}
#prev a, #next a {
text-decoration: none;
font-size: 20px;
color: #999;
position: absolute;
}
#prev a:hover, #next a:hover {
color: #000;
}
#prev a.disabled, #next a.disabled {
display: none !important;
}
#prev a {
top: 15px;
}
#next a {
bottom: 15px;
}
a.images {
left: 220px;
}
a.thumbs {
right: 220px;
}
#source {
text-align: center;
width: 400px;
margin: 0 0 0 -200px;
position: absolute;
bottom: 10px;
left: 50%;
}
#source, #source a {
color: #999;
font-size: 12px;
}
Description:
Example of a cool slideshow created with two carousels working together with animated scrolling thumbnails.
This carousel is created for your inspiration, using only the jQuery-library and the jQuery.carouFredSel-plugin
Currently showcasing 44 cool carousels, so go ahead and pick one to view:
All carousels on this website are created for your inspiration, using only the jQuery-library and the jQuery.carouFredSel-plugin.
They have been tested to work on FireFox and Chrome.
Stay updated, follow @carouFredSel
Y O U R B R O W S E R I S O L D ,
U P D A T E I T !