0

私は、一度に3つの画像を表示し、x枚の写真を丸で囲むことができるjQueryフォトカルーセルを探しています(最後に到達したら、最初の写真から始めます)。

私が探しているものの簡単なモックアップを作成しました:

したがって、3枚の写真が表示されます。真ん中の写真は「メイン」の写真で、前と次の写真(左と右)よりも少し大きくなっています。次/前の矢印をクリックすると、次または前の写真が中央にスライドし、メインの写真になります。

そのようなjQueryプラグイン/スクリプトを見つけることができる場所へのアイデアはありますか?

4

2 に答える 2

6

更新された3の 改善されたバージョン(Fancybox付き)

これは私のためであり、私にそれを求めたすべての人々のためです!;)

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


これはOP専用です:

更新2- (次の前へ)ボタン付き-デモ: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);​

あなたはこれを探しています: http ://web.enavu.com/demos/3dcarouselwip/

于 2010-05-30T14:24:46.640 に答える
0

これを試して:

Cloud Carousel - Javascript の 3D カルーセル

まさにあなたが探していることをしているようです

于 2010-05-30T15:03:46.967 に答える