jQuery照片轮播(看起来像一个真正的旋转木马)?

kas*_*tru 1 javascript jquery photo carousel

我正在寻找一个可以一次显示3张图像的jQuery照片轮播,并圈出x张照片(当到达最后一张时,再次从第一张照片开始).

我快速模拟了我要找的东西:

所以有3张照片是可见的,中间有一张照片是"主要的",有点大于上一张和下一张(左右).点击下一个/上一个箭头后,下一张或上一张照片会滑入中间,从而成为主照片.

任何想法,我可以找到这样的jQuery插件/脚本?

Luc*_*ofi 6

更新3 改进版(带Fancybox)

这是为了那个问我的人和所有人!;)

演示: http ://so.lucafilosofi.com/jquery-photo-carousel-that-looks-like-a-real-carousel/


这仅适用于OP:

更新2 - 使用(下一个上一个)按钮 - DEMO: http ://jsbin.com/iduyu

$(function() {
$('.carousel').carousel();
});

(function($) {
$.fn.carousel = function() {
// 5 minutes lightweight carousel
// Copyright/Author (c) Luca Filosofi > aseptik@gmail.com
// License Public
    $carousel = $(this);
    $carousel.wrap('<div id="carousel_wrapper"></div>');
    $carousel.parent().append('<div class="button" id="left"></div>'+
                              '<div class="button" id="right"></div>');

    $('img',this).attr('class', 'inactive');
    $('img:eq(1)',this).attr('class', 'left');
    $('img:eq(2)',this).attr('class', 'active');
    $('img:eq(3)',this).attr('class', 'right');

    $carousel.fadeIn(500);

    $('.button').live('click', function(e) {
        e.preventDefault();

        var mode = this.id;
        var $button = $('.' + mode );

        $button.css({ 
            'z-index' : 9999 , 
            'opacity': 0.8
        }).animate({
            'left': '90px',
            'width': '320px',
            'top': '0px',
            'opacity': 1
        }, 500, function() {

          //lightbox
          $(this).attr({'class':'active'})
          .removeAttr('style');
        });

        $button.prev().css({
            'opacity': 0.5 
        }).animate({
            'left': '0px',
            'width': '240px',
            'top': '30px',
            'opacity': 1
        }, 400, function() {

            $(this).attr('class', 'left').removeAttr('style');
            $(this).prevAll().attr('class', 'inactive');
        });

        $button.next().css({
            'opacity': 0.5 
        }).animate({
            'left': '260px',
            'width': '240px',
            'top': '30px',
            'opacity': 1
        }, 400, function() {

            $(this).attr('class', 'right').removeAttr('style');
            $(this).nextAll().attr('class', 'inactive');
        });

        if (mode == 'left') 
        $('img:last' , $carousel).prependTo($carousel);
        if (mode == 'right') 
        $('img:first' , $carousel).appendTo($carousel);

    });
}
})(jQuery);?
Run Code Online (Sandbox Code Playgroud)

您正在寻找:http: //web.enavu.com/demos/3dcarouselwip/