How to integrate an image gallery made with Roundabout with Fancybox?

后端 未结 2 1096
梦谈多话
梦谈多话 2021-01-22 10:06


I am trying to create a compact image gallery using the Roundabout plugin.

The carousel should rotate the thumbnails and, only for the image currently on focus,

2条回答
  •  情话喂你
    2021-01-22 10:32

    In addition to what the options you're

    $('ul.image-gallery').find('li').focus(function() {
            $(this).find('a').fancybox.cancel();
        }
    });
    

    This assumes that you are using roundabout on the ul, and fancybox on the anchor tags inside of them. When the roundabout gives focus to an li, it cancels the fancybox that will do the same thing.

提交回复
热议问题