現在、Jquery shuffleとcolor boxを組み合わせたサイトを制作中です。
shuffleに準じてcolor boxを動作させたいのですが、うまくいきません。
例えば「men」のボタンを押して、画像を絞り込み、
サムネイルをクリック後、画像右上の矢印を押すごとに
続きの「men」の画像を表示させたいのですが、
「ALL」に準じた画像が出てきてしまいます。
http://www.steer.cc/shuffle/
「men」なら「men」の、「women」なら「women」のカテゴリーの画像を
color boxで見せていくには、ソースコードをどのように
変更していけばいいのでしょうか。
下記が現状のソースコードになります。
<script> $(function() { $('#btn li').on('click', function() { var $this = $(this), $grid = $('#animationList'); $('#btn .active').removeClass('active'); $this.addClass('active'); $grid.shuffle($this.data('group')); }); $('#animationList').shuffle({ group: 'all', speed: 700, easing: 'ease-in-out' }); }); </script> <script> $(function() { $('#btn2 li').on('click', function() { var $this = $(this), $grid = $('#animationList'); $('#btn2 .active').removeClass('active'); $this.addClass('active'); $grid.shuffle($this.data('group')); }); $('#animationList').shuffle({ group: 'all', speed: 700, easing: 'ease-in-out' }); }); </script>
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー